Re: Controlling which interface named uses

2023-06-27 Thread Grant Taylor via bind-users
On 6/12/23 2:48 AM, Matus UHLAR - fantomas wrote: note that query-source settings affects source IP of packet, while "ip rule" affects outgoing interface (unless you also configure SNAT for those packets), so they are not exactly the same. Late comment: `ip route` can have some influence on

Re: Controlling which interface named uses

2023-06-12 Thread Matus UHLAR - fantomas
On Sat, 10 Jun 2023 19:24:03 +0200 Ondřej Surý wrote: 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

Re: Controlling which interface named uses

2023-06-11 Thread Paul Kosinski via bind-users
On Sat, 10 Jun 2023 19:24:03 +0200 Ondřej Surý wrote: > 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

Re: Controlling which interface named uses

2023-06-10 Thread Alessandro Vesely
On Sat 10/Jun/2023 19:32:31 +0200 Ondřej Surý wrote: The other approach might be the up/down scripts on your ppp connection that will reconfigure the query-source(-v6) address as the connection is established or tore down. Cute! Thank you. Best Ale -- -- Visit

Re: Controlling which interface named uses

2023-06-10 Thread Ondřej Surý
The other approach might be the up/down scripts on your ppp connection that will reconfigure the query-source(-v6) address as the connection is established or tore down. Ondřej -- Ondřej Surý — ISC (He/Him) My working hours and your working hours may be different. Please do not feel obligated

Re: Controlling which interface named uses

2023-06-10 Thread Ondřej Surý
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

Re: Controlling which interface named uses

2023-06-10 Thread Alessandro Vesely
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

Re: Controlling which interface named uses

2023-06-09 Thread Anand Buddhdev
On 09/06/2023 17:26, Alessandro Vesely wrote: Hi Alessandro, Hi, I have two WANs.  As a leftover from the times when I had no IPv6 address, I was running named with -4 option.  I just removed it a couple of minutes ago. However, I still have IPv4 precedence in gai.conf: precedence  ::1/128 

Controlling which interface named uses

2023-06-09 Thread Alessandro Vesely
Hi, I have two WANs. As a leftover from the times when I had no IPv6 address, I was running named with -4 option. I just removed it a couple of minutes ago. However, I still have IPv4 precedence in gai.conf: precedence ::1/128 50 0 precedence ::/0 40