You are over-complicating things. If unconfigured, named binds the outgoing UDP 
to 0.0.0.0 (::0), which means the chosen IP address is picked by the kernel. 
You need to configure priorities on your interfaces in the kernel - ip route is 
your friend.

And for goddess’ sake, don’t do anything wild like proposed round robin across 
default routes. That would be a living hell to debug.

Ondřej
--
Ondřej Surý — ISC (He/Him)

My working hours and your working hours may be different. Please do not feel 
obligated to reply outside your normal working hours.

> On 10. 6. 2023, at 18:55, Alessandro Vesely <ves...@tana.it> wrote:
> 
> On Fri 09/Jun/2023 18:32:25 +0200 Anand Buddhdev wrote:
>>> On 09/06/2023 17:26, Alessandro Vesely wrote:
>>> Having two WANs, it would be reasonable, in case one doesn't work, to try 
>>> the other one.  However, it's always useless to try the LAN.  Is there any 
>>> way to configure which interface is used for outgoing queries?
>> You can configure "query-source" and "query-source-v6" in named.conf, to 
>> tell BIND which interface to use for outgoing queries.
> 
> 
> Thank you, Anand; I hadn't found those statements.  However, they take a 
> single address only.
> 
> I'm not as much concerned about IP version as about availability.  Enabling 
> IPv6 looks nice as I see queries going out through an interface which is not 
> the default.  But will named turn back to the default interface in case the 
> IPv6 link goes down?
> 
> Keep in mind that links sometimes seem to be up, as they're connected to a 
> PPP peer or router, for example, but don't actually work.  Knowing that UDP 
> entails multiple attempts, it would be great to have, say, even attempts on 
> wan0 and odd ones on wan1.  If that's not possible, perhaps I could look for 
> ways to configure it using dscp.  Any hint?
> 
> 
> Best
> Ale
> --
> 
> 
> 
> 
> --
> Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from 
> this list
> 
> ISC funds the development of this software with paid support subscriptions. 
> Contact us at https://www.isc.org/contact/ for more information.
> 
> 
> bind-users mailing list
> bind-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
-- 
Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from 
this list

ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.


bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to