Controlling which interface named uses

Paul Kosinski bind at iment.com
Sun Jun 11 14:34:17 UTC 2023


On Sat, 10 Jun 2023 19:24:03 +0200
Ondřej Surý <ondrej at isc.org> 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 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)




If you have some external interfaces you *don't* want named to use, but might want other outgoing traffic to use, you would need some "policy based routing", which can get complicated. In Linux, this is controlled by "ip rule" (not "ip route").


More information about the bind-users mailing list