Controlling which interface named uses
Anand Buddhdev
anandb at ripe.net
Fri Jun 9 16:32:25 UTC 2023
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 50 0
> precedence ::/0 40 1
> precedence 2002::/16 30 2
> precedence ::/96 20 3
> precedence ::ffff:0:0/96 100 4
If you want your applications to prefer IPv6, then just remove this
file. The default is to prefer IPv6.
[snip]
> 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.
Regards,
Anand
More information about the bind-users
mailing list