DNS Request didn't resolve from other devices than the raspberry pi

Hey guys,

I having much trouble to get my version of pihole running on my Raspberry PI 3. I've tried for hours to find a solution on this and other websites. I hope you can help me. :slight_smile:

Please follow the below template, it will help us to help you!

Expected Behaviour:

DNS-Requests from other devices than the raspberry pi gets resolved.

Actual Behaviour:

DNS-Requests from other devices than the raspberry pi don't get resolved.

If I try to send an DNS-Request directly to the pi, the request timed out (192.168.0.9 is pingable):

nslookup pi-hole.net 192.168.0.9
DNS request timed out.
    timeout was 2 seconds.
Server:  UnKnown
Address:  192.168.0.9

DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
*** Zeitüberschreitung bei Anforderung an UnKnown.

If I use the dig-command everything looks okay:

dig pi-hole.net

; <<>> DiG 9.10.3-P4-Raspbian <<>> pi-hole.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43405
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;pi-hole.net.                   IN      A

;; ANSWER SECTION:
pi-hole.net.            1386    IN      A       206.189.252.21

;; Query time: 27 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Apr 14 21:48:05 CEST 2020
;; MSG SIZE  rcvd: 56

Debug Token: zhkxf24ie6

Thanks in advance for every help :slight_smile:

What are the particulars of the client where you are running these commands? Are they from the same client?

The dig command shows that the DNS server is the loopback address of that client. Is this command being run from the Pi itself or from a connected client?

Hey jfb,

thanks for your reply.

I run the nslookup command from my Windows 10 desktop pc. If I set up the ip of the pi (In my case the 192.168.0.9) as DNS-Server in the network configuration then I don't have any name resolution. What other particulars do you need from me?

The dig command was run on my raspberry pi.

I run the dig command on my pi over the SSH-Console of my Windows 10 desktop pc (In my case with puTTY)

If you need any other informations from me please tell me what you need to know. I will provide the informations as good as I can.

So resolution for the same hostname works from your Pi-hole (dig) and fails from a client (nslookup).

I notice that you run a number of software packages aside from Pi-hole.
Some of these packages may have activated and asserted firewall rules interfering with Pi-hole's operation.

Please verify your Pi-hole machine's firewall is not blocking some of Pi-hole's ports.

2 Likes

I've added all the IPTables/ufw rules in my raspberry. I thought the installer did that for me.
Now it works! Great! Thanks a lot!!!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.