Using Local Pihole as DNS doesn't work

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

Expected Behaviour:

Following method #3 from How do I configure my devices to use Pi-hole as their DNS server? (Just want to use pihole for my one local machine), I modify my windows machine to point to my local pihole instance (that is in a docker container). I expect for my browsers and other applications to work as expected.

Actual Behaviour:

My browsers + other applications cannot connect to the internet.

Debug Token:

[✓] Your debug token is:

NS lookup works fine and as expected


You have a configuration error. The assigned IP does not match the configured IP in Pi-Hole and the IP of the DNS SERVER that replied to the nslookup is neither of those; it is not working as expected.

*** [ DIAGNOSING ]: Networking
[✓] IPv4 address(es) bound to the eth0 interface: does not match the IP found in /etc/pihole/setupVars.conf (

*** [ DIAGNOSING ]: Setup variables

I modified my setup script to be -e ServerIP="" so now the nslookup server matches what I see in pihole -d

*** [ DIAGNOSING ]: Setup variables

Not too sure what to do about the following configuration error however

*** [ DIAGNOSING ]: Networking
[✓] IPv4 address(es) bound to the eth0 interface: does not match the IP found in /etc/pihole/setupVars.conf (

You can ignore this since you're running Pi-Hole in a Docker container.

From a connected client, what is the output of nslookup pi.hole

You can ignore this since you’re running Pi-Hole in a Docker container.

Gotcha :smile:

C:\Users\kwojc>nslookup pi.hole
Server:  ead6060555e2

Name:    pi.hole

And in my pihole docker container logs I can see the request being logged

dnsmasq: 329 query[PTR] from
dnsmasq: 329 /etc/pihole/local.list is ead6060555e2
dnsmasq: 330 query[A] pi.hole from
dnsmasq: 330 /etc/pihole/local.list pi.hole is
dnsmasq: 331 query[AAAA] pi.hole from
dnsmasq: 331 cached pi.hole is NODATA-IPv6

But when I refresh the DNS settings in chrome chrome://net-internals/#dns and restart my browser still nothing works. I also don't see any query requests in my docker logs when I try to navigate to a page in chrome (the same applies for other applications: discord, IE, etc).

The browser apparently is using a DNS other than Pi-Hole. The OS (Windows) is using Pi-Hole DNS.

When I try to use curl in the command line I get an error as well

 curl -vvv
* Rebuilt URL to:
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Could not resolve host:
* Closing connection 0
curl: (6) Could not resolve host:

When I try to use the windows "diagnose this connection" it says

My docker machine is running in a vm (as I am using windows). The vm is using a bridged adapter for the networking which I believe is the correct setting.

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