Please follow the below template, it will help us to help you!
Expected Behaviour:
Set up PiHole on Buster and it is not working
Actual Behaviour:
Ads are still getting through on websites and apps. If I run an nslookup, it is showing that my DNS is set to my default gateway first and PiHole second. On the router, the only DNS I have set is for the PiHole. I use an Eero for my router.
You can set Pihole as the DNS host in your router, or you can turn on the DHCP function of pihole after turning off the DHCP function in the router.This is just my personal advice, for your reference only, and can't replace the professional answers of Pihole developers.
iMac:~ iMac$ cat /etc/resolv.conf
#
# macOS Notice
#
# This file is not consulted for DNS hostname resolution, address
# resolution, or the DNS query routing mechanism used by most
# processes on this system.
#
# To view the DNS configuration used by this system, use:
# scutil --dns
#
# SEE ALSO
# dns-sd(1), scutil(8
#
# This file is automatically generated.
#
nameserver 192.168.7.1
nameserver 192.168.7.194
Both results show that your router is still pushing itself as DNS server, in addition to Pi-hole.
Verify that Pi-hole is set as your only DNS server in your router.
Some routers / firmwares are into a bad habit of distributing themselves in addition to any DNS server you configure.
If that seems to be the case for you, you could disable DHCP on your router and enable Pi-hole as DHCP server.
Yeah it shows in my router that the Pi-hole is the only DNS server listed, so Im not sure why its doing that. Heres a screenshot from my Eero app showing.
deHakkelaar is suggesting you double-proof your router is adding itself to the list of DNS servers, just to be sure. If you wish, you could do so by running the commands he provided in his linked post (and possibly by installing some additional software).
Given the fact that we have confirmed the additional DNS on two different devies running two different OSs, I am fairly confident that a manual DHCP discover will confirm your router is misbehaving.
As another option apart from enabling Pi-hole's DHCP, you could try and see if adding PI-hole into every available slot on your Eero would work. @deHakkelaar's manual DHCP would then come in handy to quickly establish if this changes anything for you.
I am going to give that a whirl tomorrow. I also spoke with Eero so see if it was something on the router side and they confirmed everything is correct and are saying its a RPi issue. So I am not sure.
So what I found out, eero enabled HomeKit on the routers 2 days ago. With HomeKit, the default gateway is the primary DNS and currently there is no way around that. So I disabled HomeKit and rebooted the router and now the primary DNS is the Pi-Hole and all is well.