Symptoms
The BIND service fails to start with the following error message in service status, output of the command journalctl -u named-chroot or in /var/log/syslog:
named-checkconf[18118]: zone example.com/IN: loading from master file example.com failed: file not found
named-checkconf[18118]: zone example.com/IN: not loaded due to errors.
named-checkconf[18118]: _default/example.com/IN: file not found
Cause
Invalid configuration is defined in the BIND configuration file /etc/named.conf.
Resolution
Connect to the Plesk server via SSH.
Open the file
/etc/named.confin a text editor. In this example, we are using the vi editor:# vi /etc/named.conf
Make sure the following section is defined properly. If there is no such section, add it at the beginning of the file:
options {
allow-recursion {
localnets;
};
listen-on-v6 { any; };
version "none";
directory "/var";
auth-nxdomain no;
pid-file "/var/run/named/named.pid";
};Save the changes and close the file.
Start the service:
on CentOS/RHEL-based distributions
# service named-chroot start
on Debian/Ubuntu-based distributions
# service bind9 start
Rebuild DNS zone files:
# plesk repair dns -y