Controlling which interface named uses

Matus UHLAR - fantomas uhlar at fantomas.sk
Mon Jun 12 07:48:13 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.

On 11.06.23 10:34, Paul Kosinski via bind-users wrote:
> 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").

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.

In some cases you may need both.

-- 
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I don't have lysdexia. The Dog wouldn't allow that.


More information about the bind-users mailing list