Reverse lookup for unbound conditional forwarder?



  • I have 2 pfsense routed with a conditional forwarder in unbound to each domain but reverse lookup only works for the local domain. How done?


  • LAYER 8 Global Moderator

    yeah going to need a bit more detail.. And example of what your doing and what is not working would be very helpful in helping you.



  • Thank you for your help with my setup of reverse lookup for unbound conditional forwarder.

    Background
    I have 2 pfsense running with traditional lan wan opt1 interface, unbound. and dhcpd. They are subnet 192.168.1.0/24 and 192.168.2.0/24. Domain names are localdomain1 and localdomain2. Opt1 is a gateway with default route to the other pfsense's lan address. On localdomain1, hosts can resolve by name and ip for localdomain1.

    Problem
    localdomain1 unbound has domain override for localdomain2. Hosts on localdomain1 can resolve localdomain2 hosts by name but not by ip.

    Example
    On localdomain1,
    nslookup pfsense.localdomain2 answers 192.168.2.1
    nslookup 192.168.2.1 answers

    ** server can't find 1.2.168.192.in-addr.arpa: NXDOMAIN



  • You need to also put a domain override for the reverse-lookup names:
    168.192.in-addr.arpa

    to point to the internal DNS server that knows the reverse-lookup zone.



  • That's the ticket. Reverse lookup works now.


Log in to reply