Pi Hole DNS not resolving on windows client

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

Expected Behaviour:

DNS resolves, windows client browser directs to website.

Actual Behaviour:

times out failing at the "domain lookup" stage

Debug Token:

https://tricorder.pi-hole.net/aa67pmoxep

To clarify, this is running on a raspberry pi 3b+. For now, I only want ONE client (my desktop PC) to go through pihole for DNS resolution, not my entire network. Therefore, I have not pointed my router to the pihole, but rather only my desktop win10 client. In my ip4 settings I add my pihole ip address (static through router) but it won't resolve DNS.

I do see in the debug that the networking says it can't find any ip addresses and the gateway isn't responding.

Thanks for any help!

@Jawbone Sorry, as a regular forum member I'm not able to read your Pi-hole diagnostics report ... so, if you don't mind, start a SSH session to your Pi-hole and try these two commands and post back the results:

sudo pihole status
sudo service pihole-FTL status

Sorry, I can't figure out how to copy/paste out of putty so screenshot it is

Hello @Jawbone

On your Windows 10 client, how is the TCP/IP v4 protocol configured?
Also, after setting the Windows 10 client DNS server to the Pi-Hole, could you try and clear the DNS cache on the W10 by opening command promt as administrator and run:

ipconfig/flushdns

I go to the ipv4 settings, hit advanced, and add my pi address to the DNS server (as primary, alternate is blank)

I ran CMD as admin, ran that flush cmd and it said cleared DNS cache successfully. Still same symptoms, however. I am able to post this while it is still having the issues though, so I know I still have network connectivity, just issues resolving DNS

Great. That should be it.
Do you have access to the admin page on the Pi-Hole?

http://<IP_ADDPRESS_OF_YOUR_PI_HOLE>/admin/

Try going to the Query Log page and see if the PiHole recives any requests.

The only entries on the query log on the pi-hole admin page is from the pi-hole itself presumably since the client says "localhost" otherwise no other entries.

@Jawbone Ok, it looks like Pi-hole operational.

Try restarting the Pi-hole DNS: pihole restartdns

Nothing, still. I think it's some routing issue because no requests are even showing up in the query log on pihole admin dashboard

@Tesserax @Exill

This is my admin page on pi-hole. This is the correct IP address for my desktop that I'm having issues with so the DNS requests from my desktop aren't even making it to the pihole for some reason

@Jawbone One thing I see is that the interface shows as wlan0, Is your Pi-hole connected to the network by Ethernet or by wireless? If the latter, try connecting by Ethernet. On the Pi-hole Settings > DNS tab what is your Interface Listening Behavior set to?


It should be as shown above.

Let's try two more commands:
dig pi-hole.net @127.0.0.1 -p 5353 << this should test the Pi-hole DNS from the perspective of the Pi-hole. Success is a DNS ANSWER with an IP address

dig pi-hole.net @ -p 53 . << this should test the Pi-hole from your PC's perspective. Again, success is a DNS ANSWER with the same IP address as the first test.

@Tesserax

So oddly enough I just came across those settings and was replying when I saw yours come across!

I changed to "Listen on all interfaces" and it works!! It does not work if it only listens on eth0. Why should it only be on this setting? Is it a security issue? My pi-hole is connected wifi (eth0) and my desktop is lan to my router.

The first command returns this:
pi@raspberrypi:~ $ dig pi-hole.net @127.0.0.1 -p 5353

; <<>> DiG 9.10.3-P4-Raspbian <<>> pi-hole.net @127.0.0.1 -p 5353
;; global options: +cmd
;; connection timed out; no servers could be reached

The second command i think i entered wrong as it returns:
pi@raspberrypi:~ $ dig pi-hole.net @ -p 53
dig: couldn't get address for '': not found

Ok, that's what I would expect for the first test. On the second test, you need to enter the IP address of your Pi-hole device. Something like this:
dig pi-hole.net @XXX.XXX.XXX.XXX -p 53

pi@raspberrypi:~ $ dig pi-hole.net @192.168.1.132 -p 53

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

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

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

;; Query time: 236 msec
;; SERVER: 192.168.1.132#53(192.168.1.132)
;; WHEN: Thu Jan 02 18:12:21 PST 2020
;; MSG SIZE rcvd: 56

Ok, those results are telling us that your Pi-hole is working from the perspective of the Pi-hole. Now run the exact same command from a Command Prompt window on your Windows client.

dig is not a recognized command on my windows CMD. Should it be a ping instead?

Also I am thinking perhaps I want to reconfigure my pi-hole to be LAN anyway, just better connectivity I suppose. So this might all be moot since I think the discrepancy was between the pihole being configured to ETH and my desktop being LAN. Why is it bad to have the listen option on all?

No ping would not be what would work for this.

dig is the BIND DNS lookup utility available on Macs and Linux boxes. I'm not sure what the equivalent command for Windows would be. I do know that BIND has a dig utility for Windows that may work for this. Maybe someone who is more Windows-literate may chime in to help.

The bottom line is that it appears that Pi-hole is working ... just not from this PC.

Totally fair. Thank you so much! Very much appreciate your help. I seem to have fixed the issue by allowing the pi to "listen on all devices"

Cheers!! I'm not sure how to mark this as solved, but it definitely is.

1 Like

Not to worry. I'm glad you got it working.