How to do parallel queries to the upstream DNS using Unbound

cachedomain-name-systemforwardingpfsenseunbound

Can I configure Unbound as forwarder but that it alway send a query to ALL upstream DNS servers that I configure and take as valid reply the first in arrive?

Such feature exist in nsmasq pfSense:

In pfSense 1.2.3 and later this behavior has been changed to query all
DNS servers at once, and the only the first response received is used
and cached. This results in much faster DNS service, and can help
smooth over problems that stem from DNS servers which are
intermittently slow or have high latency, especially in Multi-WAN
environments.

Query DNS servers sequentially
By default in pfSense 1.2.3 and later,
pfSense queries all DNS servers simultaneously and uses the fastest
result. This isn’t always desriable, especially if you use OpenDNS and
have site restrictions that could by bypassed by using a faster but
less strict DNS server, or it could get results from a public DNS
server over a private DNS server on the other end of a VPN. Checking
this option goes back to the old behavior where it queries each DNS
server in sequence from the top down, and waits for a timeout before
moving on to the next DNS server in the list.

Best Answer

That's a feature of dnsmasq that doesn't exist in unbound at this time. If you want to use that, you need to stick with DNS Forwarder.

Related Topic