[nsd-users] nsd4b5: reply from unexpected source
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 127.0.0.1/8 brd 127.255.255.255 scope host lo
inet 127.0.0.53/8 brd 127.255.255.255 scope host secondary lo:53
# netstat -lnp | grep nsd
tcp 0 0 0.0.0.0:53 0.0.0.0:*
tcp 0 0 :::53 :::*
udp 0 0 0.0.0.0:53 0.0.0.0:*
udp 0 0 :::53 :::*
# dig @127.0.0.1 hostname.bind -c CH -t txt +short
# dig @127.0.0.53 hostname.bind -c CH -t txt +short
;; reply from unexpected source: 127.0.0.1#53, expected 127.0.0.53#53
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
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
More information about the nsd-users