[nsd-users] Multi-homed server UDP packets wrong interface

Jeroen Koekkoek jeroen at nlnetlabs.nl
Tue Jun 28 08:50:47 UTC 2022


You're right Stuart. That's most likely enough because then you'd have
a socket per address. Hadn't thought about that, thanks!

- Jeroen


On Tue, 2022-06-28 at 10:30 +0200, Stuart Henderson wrote:
> On 2022/06/28 09:50, Jeroen Koekkoek via nsd-users wrote:
> > Hi Robert,
> > 
> > Setting the outgoing IP address depends on the IP_PKTINFO socket
> > option. Currently NSD does not implement it, but given some time it
> > can
> > certainly be made to do so.
> > 
> > NSD currently does support the bindtodevice socket option, which
> > should
> > get you the desired result(?) The option causes NSD to bind the
> > socket
> > to the device that has it assigned. It's an attribute of the ip-
> > address
> > configuration option and you can set it like so:
> > 
> >     ip-address: 1.2.3.4  bindtodevice=yes
> 
> Normally just listing the various ip-addresses separately is enough
> 



More information about the nsd-users mailing list