[yadifa-users] Define source address for transfers

Klaus Darilion klaus.darilion at nic.at
Thu Feb 24 21:36:07 CET 2022

Luckily we did not had this issue although we have multiple IPs configured. Probably our luck was that the Linux default route uses the src IP we wanted to have as query source.

Maybe you can change the default IP of the server to the one you need, and change other daemons to use the respective source IP.

$ ip route get via x.x.x.x dev ens18 src Y.Y.Y.Y uid 2001

You might be able to choose the source Y.Y.Y.Y by manually configure the default route and specify Y.Y.Y.Y as source.


-----Ursprüngliche Nachricht-----
Von: yadifa-users <yadifa-users-bounces at mailinglists.yadifa.eu> Im Auftrag von Bart Mortelmans
Gesendet: Donnerstag, 24. Februar 2022 21:23
An: yadifa-users at mailinglists.yadifa.eu
Betreff: Re: [yadifa-users] Define source address for transfers


While this might not be the solution you're looking for: faced with this problem, we decided to only configure the IP-address from which outgoing requests should originate in the server network configuration. And then activate the other addresses afterwords. We use Rocky Linux with NetworkManager enabled, so activating the other IP's is done with a script in /etc/NetworkManager/dispatcher.d/

If you configure your network on your server that way, all outgoing requests on your server, for which no specific source address is specified, should reliably originate from that same IP-address thus configured during boot time. Any other solution we tried caused the source IP to possibly change after a reboot.

And: if you are using NetworkManager and activate the IP's in /etc/NetworkManager/dispatcher.d/, they should be active before Yadifa starts. So you won't even need to enable "net.ipv4.ip_nonlocal_bind".

This being said: "+1" for the feature request: being able to configure the source address for outgoing requests in the Yadifa configuration.


Bart Mortelmans

On 22/02/2022 15:57, Leo Vandewoestijne wrote:
> Hi,
> I'm using Yadifa with multiple IP's.
> Outgoing AXFR and IXFR requests however get wrong IP and therefor fail.
> So I wish to define the IP to use for such requests.
> I'm unable to use listen=,:: as at some other IP's at the same host I need another daemon than Yadifa.
> So basically my question remains the same as my unanswered question in 2015:
> https://www.yadifa.eu/archives/yadifa-users/2015-August/000074.html
> How can I define the src addr for outgoing requests?
> If currently impossible, can this become a feature request please?
yadifa-users mailing list
yadifa-users at mailinglists.yadifa.eu

More information about the yadifa-users mailing list