Does Unbound Honor Gateway Monitoring?

  • I believe that the answer here is "no" since "outgoing interfaces" rather than gateways or gateway groups are selected in the configuration. I have unbound configured to use only the two interfaces corresponding to two VPN client connections for outgoing queries, and notice that when one of the two tunnels is considered to be down by gateway monitoring, DNS resolution becomes quite unreliable. It will either take a long time or require several attempts to succeed. I should also note that I have unbound configured in forwarding mode, in case it matters. I'm guessing that the only way to tie gateway monitoring into unbound would be for it to be stopped, its outgoing interfaces configuration modified, and then restarted every time a gateway goes up or down. But is there any simpler configuration I'm overlooking to improve the behavior when one of the configured outgoing interfaces goes down?

Log in to reply