How to make unbound update hostname entry on gateway down
-
I'm hosting a wireguard box behind a couple HA pfsenses, each of which is configured for 2 ISPs.
Wireguard configuration that I'm able to provide to users can only have a single vpn endpoint (wireguard limitation).
I have unbound configured with an access-list of 0.0.0.0/0 as well as an "internet" view with a local-data entry vpn.mydomain.com pointing my primary ISP CARP IP. This setup allows for vpn to continue functioning in the event that one of the firewalls fails, but not if one of the ISP links goes down.Does anyone know how to either get unbound to respond with a different A record depending on whether the query arrived on WAN1 or WAN2, or to update (not manually) the said A record if one of the ISP links is down?
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.