i did a fresh mailinabox setup on a Ubuntu 18.04.2 LTS VPS.
Now i get the message that “Public DNS (nsd4) is not running (port 53).”
systemctl status nsd.service
● nsd.service - Name Server Daemon
Loaded: loaded (/lib/systemd/system/nsd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2019-02-28 20:57:35 CET; 3min 18s ago
Process: 23948 ExecStart=/usr/sbin/nsd -d (code=exited, status=1/FAILURE)
Main PID: 23948 (code=exited, status=1/FAILURE)
Feb 28 20:57:35 domain.ltd systemd[1]: nsd.service: Service hold-off time over, scheduling restart.
Feb 28 20:57:35 domain.ltd systemd[1]: nsd.service: Scheduled restart job, restart counter is at 5.
Feb 28 20:57:35 domain.ltd systemd[1]: Stopped Name Server Daemon.
Feb 28 20:57:35 domain.ltd systemd[1]: nsd.service: Start request repeated too quickly.
Feb 28 20:57:35 domain.ltd systemd[1]: nsd.service: Failed with result ‘exit-code’.
Feb 28 20:57:35 domain.ltd systemd[1]: Failed to start Name Server Daemon.
Feb 28 20:57:40 domain.ltd systemd[1]: nsd.service: Start request repeated too quickly.
Feb 28 20:57:40 domain.ltd systemd[1]: nsd.service: Failed with result ‘exit-code’.
Feb 28 20:57:40 domain.ltd systemd[1]: Failed to start Name Server Daemon.
€‹[2019-03-02 17:02:12.756] nsd[13631]: error: can't bind tcp socket: Cannot assign requested address
[2019-03-02 17:02:12.756] nsd[13631]: error: cannot open control interface ::1 8952
[2019-03-02 17:02:12.756] nsd[13631]: error: could not open remote control port
[2019-03-02 17:02:12.756] nsd[13631]: error: could not perform remote control setup
[2019-03-02 17:02:12.973] nsd[13637]: notice: nsd starting (NSD 4.1.17)
[2019-03-02 17:02:12.977] nsd[13637]: error: can't bind tcp socket: Cannot assign requested address
[2019-03-02 17:02:12.977] nsd[13637]: error: cannot open control interface ::1 8952
[2019-03-02 17:02:12.977] nsd[13637]: error: could not open remote control port
[2019-03-02 17:02:12.977] nsd[13637]: error: could not perform remote control setup
Did you disable IPv6 by chance? In it’s default configuration nsd wants to bind it’s control internface to the v6 localhost (::1) which is not available when IPv6 was disabled in the system.
Thanks for the hint!
Somehow ip6 was disabled at my VPS.
Enabled with: sysctl -w net.ipv6.conf.all.disable_ipv6=0
and sysctl -w net.ipv6.conf.default.disable_ipv6=0