Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Multi WAN - DNS routing when default gateway is down

    Scheduled Pinned Locked Moved Routing and Multi WAN
    3 Posts 2 Posters 1.5k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mvrk
      last edited by

      Hi,

      I've just noticed today, after my primary internet access went down, that i couldn't resolve dns, then i noticed that the routing to the DNS servers i got configured in pfsense was going throw my default gateway.

      Shouldn't the default gateway of pfsense change when i'ts down?

      Or can i configure a firewall rule to make all traffic from 127.0.0.1 to DNS server go through my failover group?

      1 Reply Last reply
      Reply Quote 0
      • H
        heper
        last edited by

        Did you specify a dns server for each gateway in System: General Setup ?

        [Shouldn't the default gateway of pfsense change when i'ts down? /quote]
        Not by default, you can however, enable this if you wish (System: Advanced: Miscellaneous: Allow default gateway switching)

        Or can i configure a firewall rule to make all traffic from 127.0.0.1 to DNS server go through my failover group?

        Yes, create a floating rule - direction out - for tcp/udp on dns port (53) - check option quick - select gateway-group. (you would need to set dns servers reacheable from all your isp's

        enjoy

        1 Reply Last reply
        Reply Quote 0
        • M
          mvrk
          last edited by

          @heper:

          Did you specify a dns server for each gateway in System: General Setup ?

          No, i've selected "none" on the "Use Gateway" option for all my DNS.
          I guess i could make one DNS go through my primary gateway and the other through the secondary, but automatic change of default gateway seems a better option.

          @heper:

          Shouldn't the default gateway of pfsense change when i'ts down?
          Not by default, you can however, enable this if you wish (System: Advanced: Miscellaneous: Allow default gateway switching)

          I will activate this option and make some tests.

          Thankx.

          1 Reply Last reply
          Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
          Privacy Policy · Cookie Policy