Override Outgoing Interface on DNS Resolver
-
Does anybody know if there's a way to override the outgoing network interface on the DNS Resolver based on the domain name being requested?
-
Hi,
Do you mean this : http://unbound.nlnetlabs.nl/svn/trunk/doc/example.conf.in - look for "Forward zones" ?
-
You would set a domain override… It would use whatever interface it is allowed to use per routing to get there... So if you have multiple wans and you have a route to 1.2.3.4 to use gateway A then it should use that gateway to get there.
Resolving would work the same way based upon the route to get to the authoritative ns would determine which outgoing interface would be used.
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.