Article ID: 115002, created on Jan 9, 2014, last review on May 9, 2014

  • Applies to:
  • Plesk for Linux/Unix


"named" 服务启动失败:

# /etc/init.d/psa startall
Starting psa... done
Starting xinetd service... done
Starting named service...failed
Starting mysqld service... failed
Starting postgresql service... not installed
Starting psa-spamassassin service... done
Plesk:Starting Mail Server... done
# /etc/init.d/psa reload
Reloading SWsoft control panels server...[ OK ]
# /etc/init.d/named reload
Reloading named:[FAILED]


# tail /var/log/messages
Oct 20 13:44:32 serv1 named: zone domain.tld/IN: not loaded due to errors.
Oct 20 13:44:32 serv1 named:_default/domain.tld/IN: bad zone
Oct 20 13:44:32 serv1 named: zone domain.tld/IN:NS 'ns.domain.tld' has no address records (A or AAAA)
Oct 20 13:45:47 serv1 sw-cp-server_init: stale pidfile.


可能是因为 named 配置已损坏。


通过以下命令备份和重建 DNS 配置:

cd /var/named/run-root/etc
mv named.conf named.conf.bak
cp named.conf.default named.conf
mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa -Ns -e"SELECT name FROM dns_zone" | \
    while read dz ; do /usr/local/psa/admin/sbin/dnsmng --update $dz ; done
/etc/init.d/named restart

注意:进入 DNS 服务器 chrooted 目录的路径可能会因为操作系统版本的不同而不同。如果目录 /var/named/run-root/etc 不存在请尝试 /var/named/chroot/etc

56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838

Email subscription for changes to this article