pfsense + pi-hole + dns resolver (unbound) working with dns redirects.

Recently i switched my home network ad blocking software from dnsbl(pfblockerng) to pi-hole because the gui is so much nicer and easier to work with and see what all is going on. so when i changed my dns server in pfsense over to the new pi-hole server it basically bypassed all my dns redirects i had setup in unbound (dns resolver), so after some searching i found an option in unbound services>dns resolver “DNS query forwarding, check the box “enable forwarding mode” and that will make unbound the primary dns which retrieves its resolutions from pi-hole.

The downside to this setup is pi-hole shows all requests from 192.168.10.1 (aka my router) instead of the individual devices, but it was the only way to make it work with my lancache server which relies on the redirects from unbound.

hopefully i can tinker with it and find a workaround for that later but for now it works. Thanks for reading!

!