DNS resolver with (failover) gateway group
-
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?
-
@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. -
Didn't know it was this plain simple.
Many thanks!