Cannot start named service loading from master file localhost.rev failed: file not found

Created:

2016-11-16 12:50:53 UTC

Modified:

2017-04-24 11:05:17 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot start named service loading from master file localhost.rev failed: file not found

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

Cannot start named service:

/etc/init.d/named restart
Stopping named: [ OK ]
Starting named:
Error in named configuration:
zone 0.0.127.IN-ADDR.ARPA/IN: loading from master file localhost.rev failed: file not found
zone 0.0.127.IN-ADDR.ARPA/IN: not loaded due to errors.
_default/0.0.127.IN-ADDR.ARPA/IN: file not found
[FAILED]

When trying to restart the service from Plesk interface the following error appears:

Error: Unable to make action: Unable to manage service by dnsmng: dnsmng: Service /etc/init.d/named failed to start
('--start', 'dns')

Cause

chroot directory is not configured in /etc/sysconfig/named configuration file of named service.

Resolution

  1. Configure /etc/sysconfig/named as in example below:

    ROOTDIR="/var/named/chroot"
    OPTIONS="-c /etc/named.conf -u named -n 2"
  2. Update dns zone for all domains:

    # MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa -N -e"select name from domains" | while read i;do echo $i; /usr/local/psa/admin/sbin/dnsmng --update $i ;done
  3. Restart named service:

    # service named restart
    Stopping named: [ OK ]
    Starting named: [ OK ]
Have more questions? Submit a request

2 Comments

Please sign in to leave a comment.