[nsd-users] nsd4b5: reply from unexpected source

Andreas Schulze sca at andreasschulze.de
Thu Sep 26 15:32:30 UTC 2013


I normally run nsd with fixed ip-addresses in nsd.conf.

Today I tried to remove all these addresses and nsd listen on INADDR_ANY.
but then I get errors while using secondary addresses:

# ip -4 addr show dev lo
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
       inet brd scope host lo
       inet brd scope host secondary lo:53

# netstat -lnp | grep nsd
tcp        0      0    *                
LISTEN      18170/nsd
tcp        0      0 :::53                   :::*                     
LISTEN      18170/nsd
udp        0      0    *                   
udp        0      0 :::53                   :::*                        

# dig @ hostname.bind -c CH -t txt +short

# dig @ hostname.bind -c CH -t txt +short
;; reply from unexpected source:, expected

I think, there was a similar discussion on nsd-users or unbound-users  
but found nothing here...

Reason behind this question is a redundancy problem. I have 2 server  
providing name-service.
The service-address is maintained by a keepalived. So sometimes when  
nsd try to start, the service-address
is located on the other host. listen to a specific address fail, nsd  
don't start :-(

For that reason I also tried the "ip-transparent" option.
But I get still: error: can't bind udp socket: Cannot assign requested address

Any hints?


More information about the nsd-users mailing list