Setup:
I have a raspberry pi zero w that I have setup with raspbian lite, this is running with a static ip address of 192.168.2.10
.
Have a Asus router that is configured to hand out 192.168.2.10
as the DNS server. The option to advertise the router as a additional DNS server is set to false.
I see clients getting the pi hole's ip address as the DNS Server.
Example output from ipconfig /all on a windows machine:
Wireless LAN adapter Wi-Fi:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Qualcomm Atheros QCA9377 Wireless Network Adapter
Physical Address. . . . . . . . . : XX-XX-XX-48-XX-XX
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 192.168.2.247(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : 16 February 2021 22:56:48
Lease Expires . . . . . . . . . . : 17 February 2021 22:56:48
Default Gateway . . . . . . . . . : 192.168.2.1
DHCP Server . . . . . . . . . . . : 192.168.2.1
DNS Servers . . . . . . . . . . . : 192.168.2.10
NetBIOS over Tcpip. . . . . . . . : Enabled
Expected Behaviour:
Clients andriod, windows laptops are able to resolve dns queries and their corresponding data shows up on the admin dashboard.
Actual Behaviour:
- On the Dashboard I see only localhost.
- Some clients are failing to resolve names.
Example of a nslookup from the same windows laptop form which I had pasted the ipconfig output.
C:\Users\user1>nslookup google.com 8.8.8.8
Server: dns.google
Address: 8.8.8.8Non-authoritative answer:
Name: google.com
Addresses: 2404:6800:4009:800::200e
142.250.76.206C:\Users\user1>nslookup google.com
DNS request timed out.
timeout was 2 seconds.
Server: UnKnown
Address: 192.168.2.10DNS 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.
*** Request to UnKnown timed-outC:\Users\user1>
This windows laptop does show Internet is not connected even though I explicitly whitelisted www.msftncsi.com
and msftncsi.com
.
Similarly a moto andriod phone doesnt shows connectivity failed but when I ask it to continue to be connected and turn off mobile data, things still work on the andriod device.
A Xiaomi MIUI device continues to work as though nothing is wrong. But even this device doesnt show up on the admin panel which leads me to a suspicion that its using a diff DNS Server. Note, I the private dns functionality in MIUI is off.
Debug Token:
https://tricorder.pi-hole.net/00aamfvo5h
Would appreciate any pointers to figure out whats happening here.
Have restarted the pi hole, flushed network table, restarted dns resolver, flushed logs. All of these did not help.
This is what the dashboard shows