[nsd-users] Starting NSD on Debian with systemd fails
Jeroen Massar
jeroen at massar.ch
Sat Oct 18 14:16:53 UTC 2014
On 2014-10-18 15:57, Stephane Bortzmeyer wrote:
[..]
> Oct 18 13:48:19 mononoke.bortzmeyer.org nsd[2799]: [2014-10-18 13:48:19.151] nsd[2799]: error: can't bind udp socket: Cannot assign requested address
Are you binding to a specific IP address?
As you might be racing the system if the network is not fully up yet
(hence, the address you are binding to is missing).
Seems distributions do not understand the concept that programs that use
network functions like it when there actually is a network.
You might want to set net.ipv4.ip_nonlocal_bind = 1 in sysctl (which is
also valid for IPv6 according to rumors). That way nsd can bind to the
IP it wants even if it is not local yet.
or put a "ip addr show >>/tmp/nsdboot.log" into
"/usr/sbin/nsd-checkconf" to see what is up or not at that time.
Greets,
Jeroen
More information about the nsd-users
mailing list