I'm back posting here again with an issue that really seems unlike anything else I've seen here.
PiHole works just fine for normal DNS queries (supposedly), as running nslookup
on an ad domain returns 0.0.0.0/:: just as it should. Running wget
, however, still returns the webpage, but only sometimes. Consequently, that also means it doesn't block ads on websites. Most of the time it returns the webpage, indicating it didn't block the domain, but rarely wget
can't resolve the address, as it should when PiHole is running.
I haven't noticed any pattern to it blocking ads, it seems totally random whether it works it not. I've tried restarting the DNS resolver, flushing the cache on both PiHole and my client (Windows desktop), restarting the Raspberry Pi, client, and router, and repairing PiHole. When PiHole does work, it works perfectly for every device as it should. If I use my VPN (PiVPN w/WireGuard) from my Android device, domains are blocked as expected.
The DHCP server works as expected and assigns PiHole as the IPv4 DNS, but not the IPv6 DNS, which I fixed by doing that manually.
Output of testing connection to ad domains from my Windows desktop
Expected Behaviour:
Ads to be blocked from any DNS query on Windows client
Actual Behaviour:
Still able to contact ad domains (googleads.g.doubleclick.net) via wget
/HTTP-GET