[nsd-users] how to config one nsd zone as both master & slave using two interfaces -- one IPv4 & one IPv6?

Dave Knight dave at knig.ht
Sat Dec 4 18:14:54 UTC 2010


On 2010-12-04, at 12:36 PM, "" <pgngw+dev001+nsd-users at f-m.fm> <pgngw+dev001+nsd-users at f-m.fm> wrote:

> much appreciated!

no problem

> of course, now i wonder what purpose "outgoing-interface" serves at all
> ... unless it defines a/the default interface that can be overridden for
> each zone & notify-direction. ? :-/

It's used in the case where a system has multiple interfaces/addresses from which packets might be sourced and you want NSD to use a specific one. This is useful for example when a nameserver allows transfers only to a specific address, you need to ensure that you are in fact requesting the transfer from that specific address.

ie, if your Linux box has an additional address on an interface alias

eth0      Link encap:Ethernet  HWaddr 00:11:d8:9b:6b:7c  
          inet addr:192.0.2.1  Bcast:192.0.2.255  Mask:255.255.255.0

eth0:1    Link encap:Ethernet  HWaddr 00:11:d8:9b:6b:7c  
          inet addr:192.0.2.2  Bcast:192.0.2.255  Mask:255.255.255.0

it will default to sourcing packets using 192.0.2.1, but if you really want it to source using 192.0.2.2 you can instruct nsd to override the default behaviour with outgoing-interface: 192.0.2.2

dave



More information about the nsd-users mailing list