Forward all DNS queries from pfSense to another DNS server



  • I want to foward all DNS queries from pfSense to another DNS server. Im not sure which to choose DNS Forward (looks more logical but I dont see a IP input text) or DNS Resolver.



  • DNS Resolver (Unbound) has a forwarding option as well, so you could use either as a forwarder. Just make sure to check that option if you choose to use the DNS Resolver for forwarding.

    As far as where requests get forwarded to… they will be forwarded to whatever DNS servers you have configured in the System > General settings. If you don't have any set there, they will be forwarded to whatever DNS servers your ISP provides via DHCP (assuming your ISP provides your WAN address via DHCP).



  • Which of the two is recommended to use?


  • Rebel Alliance Global Moderator

    either or.. They both do the same thing..  Unbound is the newer addition to pfsense, at some point dnsmasq might be removed but I doubt it and would be multiple releases down the road if ever.

    I would suggest you use the "forwarder" dnsmasq just for the fact its actually called that in the menus and has no option to be resolver.  Unbound has way more configuration options and more likely for user to mess up or not actually have forwarder mode enabled.

    Also unbound forwarder I do not believe forwards to all in the list like dnsmasq does unless you enable seq mode.

    Go with dnsmasq forwarder..

    Curious why not use unbound as resolver. This  way your sure you get answer direct from horses mouth and has support for dnssec, etc.