Pinning DNS servers to gateways important?



  • I can configure 4 DNS server under System -> General Setup. The description says:

    In addition, optionally select the gateway for each DNS server. When using multiple WAN connections there should be at least one unique DNS server per gateway.

    All the dns server are reachable through every gateway because I use public DNS server. So should I just select "none" on every dns server?


  • Rebel Alliance Developer Netgate

    The gateway setting is primarily useful in multi-WAN scenarios where you need to make sure that you have one DNS server per WAN configured.



  • @jimp:

    The gateway setting is primarily useful in multi-WAN scenarios where you need to make sure that you have one DNS server per WAN configured.

    Won't selecting "none" as stated above achieve that goal (no sticky rule = "use whatever you want")?



  • When "none" is selected, the DNS queries will all go out the default gateway. If that goes down, then no DNS. You can enable "default gateway switching" as long as all your WANs (interfaces with a gateway set) lead to the public internet - then the system will switch to another gateway and DNS will "failover".
    Choosing a particular gateway for each DNS server means you don't need to use "default gateway switching" and spreads the DNS query load between WAN links.


Log in to reply