Unable to resolve pihole custom dns entries
-
Hi
I have a LXC (10.10.20.x) behind a pfsense interface (10.10.20.1) and a pihole instance running on (10.10.20.2), now my pfsense is the main dns for all my LXC's which worked great, but now as I have a domain and run a local ONLY nginxproxymanager instance and wrote local dns rewrites on pihole to get the domains to use the proxy, works absolutely fine everywhere, even when directly querying the pihole via nslookup it outputs correct.Now my pfsense instance is a dns forwarder only and has as a dns server (for testing) just the pihole.
That works fine for every domain, they appear on the pihole log etc, but when trying to use or query my local dns rewrites through pfsense it just does not work at all, there is can't find subdomain.example.com: No answer.Thank you for any help!
-
@CrazyWolf-0 most likely rebind protection. When unbound forwards to some other NS, and the answer is rfc1918 it will not provide this answer to the asking client.
Set your domain as private, or disable rebind completely
https://docs.netgate.com/pfsense/en/latest/services/dns/rebinding.html
-
@johnpoz
Wow, you are awesome !!!
Huge thanks!
Worked!