• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Cannot start named

Nicecloud

New Pleskian
CentOS Linux 7.3.1611 (Core)‬
Produkt Plesk Onyx Version 17.0.17 Uppdatera #12, senast uppdaterad 2017-01-5 18.46

$ service named start
Redirecting to /bin/systemctl start named.service
Job for named.service failed because the control process exited with error code. See "systemctl status named.service" and "journalctl -xe" for details.
$ systemctl status named.service
● named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2017-01-05 22:49:54 CET; 1min 30s ago
Process: 30311 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z /etc/named.conf; else echo "Checking of zone files is disabled"; fi (code=exited, status=1/FAILURE)

Jan 05 22:49:54 myhost.tld bash[30311]: _default/mydomain.tld/IN: file not found
.
.
.


It seems that named-checkconf cannot find /var/named directorys

if I start named manually it works, maybe it has to do with -t /var/named/chroot

$ /usr/sbin/named -u named -t /var/named/chroot -c /etc/named.conf -u named -n 2

temporary workaround with cron
*/5 * * * * kill -HUP $(cat /var/named/chroot/var/run/named/named.pid)
5 * * * * kill -9 $(cat /var/named/chroot/var/run/named/named.pid) ; /usr/sbin/named -u named -t /var/named/chroot -c /etc/named.conf -u named -n 2
 
Back
Top