I’m not a networking expert, so please bear with me. I’ve got a self hosted Pi Hole at 192.168.1.10 and added some entries to Local DNS. E.g. I added “pi.nl” to point to my Pi Hole server.
In my router at 192.168.1.1 , I’ve configured 192.168.1.10 as DNS server, and in the DHCP settings I’ve set 192.168.1.1 as DNS Reason for this is that I’ve got a Guest WiFi which does not have local LAN access, so those clients wouldn’t be able to use 192.168.1.10. I also don’t want to set a public DNS server as second in DHCP as I’ve noticed that then clients may start using that one if the Pi Hole doesn’t respond quickly enough.
On clients, Pi Hole ad blocking works fine, e.g. blocked entries are not resolved. However, the local DNS entry does not resolve. See command output below. Why doesn’t that work?
C:\Users\admin>nslookup pi.nl 192.168.1.10
Server: pi.hole
Address: 192.168.1.10
Name: pi.nl
Address: 192.168.1.10
C:\Users\admin>nslookup pi.nl
Server: smart.mesh
Address: 192.168.1.1
*** No internal type for both IPv4 and IPv6 Addresses (A+AAAA) records available for pi.nl
For adblocked entries, the response is slightly different. Pi Hole responds with 0.0.0.0 whereas via the router I just don’t get an empty response:
C:\Users\admin>nslookup 2no.co 192.168.1.10
Server: pi.hole
Address: 192.168.1.10
Name: 2no.co
Addresses: ::
0.0.0.0
C:\Users\admin>nslookup 2no.co
Server: smart.mesh
Address: 192.168.1.1
Name: 2no.co
Address: ::
Isn’t it possible what I want to do?
Do you have conditional forwarding enabled in pihole settings? I think you need that.
Thanks, tried that, but didn’t make a difference.