Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    DNS resolver with (failover) gateway group

    Scheduled Pinned Locked Moved Routing and Multi WAN
    3 Posts 2 Posters 692 Views
    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.
    • P
      Panja
      last edited by Panja

      I have multiple WAN connections setup as a failover gateway group.
      My LAN goes "outside" through this failover gateway group.
      LAN uses unbound (DNS resolver) on pfSense to do the DNS lookups.

      Is there a way to choose the failover gateway group as outgoing interface for Unbound? I want the DNS requests to go over WAN1 when WAN1 is active and not over WAN2 or 3.
      When WAN1 is offline and the failover switches to WAN2 I only want WAN2 to make DNS requests and not WAN3 (WAN1 won't do any because it's offline).

      Any way to set this up?

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @Panja
        last edited by

        @panja
        All outbound from pfSense uses its routing table.
        When you want it to direct traffic out based on a failover group, just select it at System > Routing > Gateways > Default gateway.

        P 1 Reply Last reply Reply Quote 1
        • P
          Panja @viragomann
          last edited by

          @viragomann

          Didn't know it was this plain simple.
          Many thanks!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.