Symptoms
-
BIND DNS server fails to start on Debian/Ubuntu-based distributions. The following message appears in
/var/log/syslog
:systemd[1]: Started BIND Domain Name Server.
dns named[24438]: usage: named [-4|-6] [-c conffile] [-d debuglevel] [-E engine] [-f|-g]
dns named[24438]: [-n number_of_cpus] [-p port] [-s] [-S sockets] [-t chrootdir]
dns named[24438]: [-u username] [-U listeners] [-m {usage|trace|record|size|mctx}]
dns named[24438]: usage: named [-v|-V]
dns named[24438]: named: extra command line arguments
dns systemd[1]: bind9.service: Main process exited, code=exited, status=1/FAILURE -
Restarting DNS Server (BIND) in Plesk at Tools & Settings > Services Management shows no errors.
Cause
The /etc/default/bind9
file has been altered: the content of the file/etc/default/bind9
differs from:
# cat /etc/default/bind9
OPTIONS="-f -t /var/named/run-root -c /etc/named.conf -u bind -n 2"