My current network is set up that I have internal servers providing DHCP and DNS services to my LAN, that then forward requests to my firewall via my Pi-Hole. This is all working really well except for one minor thing: the firewall cannot reverse lookup up any internal machines so things like the firewall log in the web console only ever shows the IP address. Internal domain lookups are fine as I have got that set up in the overrides section of Unbound, but the reverse ones are not.What's the correct way in Unbound to set up the reverse lookup for my internal subnets? I can see the "Local Zone Type" is set to "Transparent", but I cannot fathom what to change it to and where configure the forwarder.
Hi Taomyn,did you resolved this iussue? I didn't found anything about it... Thank you in advance!
I havent tested this but I believe you would go to overrides and then add a domain override.The domain to add would be something like:1.168.192.in-addr.arpa(this would specify 192.168.1.x)and in the IP section you would put the DNS server for unbound to query eg: 192.168.1.20 (assuming that is IP of DNS server).I would say that if you do this you should take care to ensure the firewall does not answer DNS queries to anyone other than on the local LAN or it would be possible to fingerprint devices behind your network and perform a nat pinning attack. You can ensure this is the case by making sure only LAN is selected for unbound to run on and ensuring 53 is not open on your firewall.
I have also tried, but not working. Still showing (reverse) IPs and a lot of PTR requests.
Thank you. I setup a windows dns server and unbound to test on opnsense. I also had an issue until I found this option here :Once I set to be able to forward queries out of the lan interface my opnsense running unbound could resolve ptr records for me by forwarding the query to the windows dns server and querying the ptr records. Please double check your config as I believe I have confirmed it can work. Pete