Symptoms
Unable to start the bind9 service:
# systemctl status bind9.service
● bind9.service - BIND Domain Name Server
Loaded: loaded (/lib/systemd/system/bind9.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Fri 2021-01-29 10:16:18 CET; 2min 36s ago
Docs: man:named(8)
Process: 9926 ExecStart=/usr/sbin/named $OPTIONS (code=exited, status=0/SUCCESS)
...
Jan 29 10:16:18 org-www.clicksports.de systemd[1]: bind9.service: Failed with result 'timeout'.
Jan 29 10:16:18 org-www.clicksports.de systemd[1]: Failed to start BIND Domain Name Server.
Cause
Custom bind configuration.
Resolution
-
Connect to the server via SSH
-
Open the file
/etc/default/bind9
(or/etc/default/named
) in a text editor and change its content from:OPTIONS="-f -t /var/named/run-root -c /etc/named.conf -u bind -n 2"
to
OPTIONS=" -t /var/named/run-root -c /etc/named.conf -u bind -n 2"
-
Move the file
/etc/systemd/system/bind9.service
to a different directory:# mv /etc/systemd/system/bind9.service /root
-
Reload the daemon:
# systemctl daemon-reload
-
Restart the bind9 service:
# systemctl restart bind9
Comments
0 comments
Please sign in to leave a comment.