I have set up pi-hole on my raspberry pi OS (raspberry pi 2). As I could not set the DNS in my router, I disabled it's DHCP and used the pi-hole included DHCP. I set the DNS to be the pi-hole server and it does work for most of my devices. However, two of my devices does not seem to use the pi-hole, although they are set up as such (at least, that's what the settings show).
The two devices that are having troubles are:
- Macbook Pro with Mojave (10.14.6) installed. The pi is the only DNS server configured and there is no VPN configured. There is however a DNSMasq instance running on the device that routes .consul and .dev top level domains to my docker instances. All other requests are resolved by the system (which is configured to use the pi).
- LG G8s with Android version 9 installed. Not much to say here. The network info ii app shows that the DNS is configured to be the pi DNS server. Furtermore, private DNS is disabled and there is no VPN running on the device.
Expected Behaviour:
I expect that the devices use the pi-hole. They seem to do so, but they don't (show up in the interface?)
Actual Behaviour:
The queries are not actually blocked. The pi-hole's IP is 192.168.2.27. I am very, very certain that analytics.google.com is blocked so I used that to test the capabilities of pi-hole:
On my raspberry pi (localhost basically):
pi@Hera:~ $ nslookup analytics.google.com
Server: 192.168.2.27
Address: 192.168.2.27#53
Name: analytics.google.com
Address: 0.0.0.0
Name: analytics.google.com
Address: ::
On my macbook:
slMacBook-Pro:~ robbin$ nslookup analytics.google.com
Server: 192.168.2.27
Address: 192.168.2.27#53
Non-authoritative answer:
analytics.google.com canonical name = www3.l.google.com.
Name: www3.l.google.com
Address: 172.217.17.110
This is on piece of metal that runs Linux:
robzombie111@zeus:~$ nslookup analytics.google.com
Server: 192.168.2.27
Address: 192.168.2.27#53
Name: analytics.google.com
Address: 0.0.0.0
Name: analytics.google.com
Address: ::
The Android is not showing up in the interface, so I presume it is also not working. I do not use data savings and do not use Chrome. I disabled DNS over HTTPS in Firefox and use that to browse. It all does not work.
I should also add that I've tried many things on my macbook (which is the most important to get right):
- Disabling DNSMasq on my macbook
- Flushing cache
- Restarting the macbook
- Restarting the router
- Restarting, repairing en reinstalling pi-hole
- Disabling the firewall on my router
- Disabling the firewall on the raspberry pi
- Overriding the DNS on my mac with scutil and in the network preferences
What's interesting is that going to "http://pi.hole/admin" does work on my linux machines, but does not work on my Android and on my Macbook.
And probably a lot more i've forgotten about.