1
General Discussion / Re: OPNsense + Pi-Hole Questions
« on: March 19, 2020, 02:30:13 pm »
I have mine setup a little different with pi-hole.
I use the router DHCP. The DNS for the clients is set to the pi-hole address. Pi-holes upstream DNS is set to the router, and the routers upstream DNS is set to whatever (1.1.1.1 in my case). So client -> pi-hole -> router -> external DNS.
On pi-hole, go to settings and check "Use conditional forwarding" and enter your router address and domain name.
All of the clients use pi-hole for DNS. Pi-hole is able to resolve local names and it resolves DNS via the router (Unbound by default).
What I haven't figured out is how to forward external DNS requests to pi-hole. i.e., Some devices like Chromecast will also use Google DNS (even though DHCP specifies a different server). I can't seem to setup a port forwarding rule to forward requests to 8.8.8.8 to pi-hole. I can only get that to work by forwarding to the router (per that link posted earlier).
I use the router DHCP. The DNS for the clients is set to the pi-hole address. Pi-holes upstream DNS is set to the router, and the routers upstream DNS is set to whatever (1.1.1.1 in my case). So client -> pi-hole -> router -> external DNS.
On pi-hole, go to settings and check "Use conditional forwarding" and enter your router address and domain name.
All of the clients use pi-hole for DNS. Pi-hole is able to resolve local names and it resolves DNS via the router (Unbound by default).
What I haven't figured out is how to forward external DNS requests to pi-hole. i.e., Some devices like Chromecast will also use Google DNS (even though DHCP specifies a different server). I can't seem to setup a port forwarding rule to forward requests to 8.8.8.8 to pi-hole. I can only get that to work by forwarding to the router (per that link posted earlier).