Can not modify domain state: Unable to open DNS config file: No such file or directory.

Created:

2016-11-16 13:08:44 UTC

Modified:

2017-08-08 13:36:19 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Can not modify domain state: Unable to open DNS config file: No such file or directory.

Applicable to:

  • Plesk for Linux

Symptoms

An attempt to change domain status returns the following error in /var/log/plesk/panel.log :

[12-Sep-2014 09:52:09 America/Chicago] PHP Fatal error:  Uncaught exception 'PleskMultipleException' with message 'Error during example.com createZone: dnsmng failed: dnsmng: Unable to open DNS config file: No such file or directory

System error 2: No such file or directory

OR upon command-line execution:

# /usr/local/psa/bin/domain -u example.com -status disabled

SUCCESS: Update of domain 'example.com' completed.
Error occured while sending feedback. HTTP code returned: 502
PHP Fatal error: Uncaught exception 'PleskMultipleException' with message 'Error during example.com updateZone: dnsmng failed: dnsmng: Unable to open DNS config file: No such file or directory

System error 2: No such file or directory

One of the following files is missing:

/etc/named.conf -> /var/named/chroot/etc/named.conf
/var/named/run-root/etc/named.conf
/var/named/chroot/etc/
/var/named/chroot/etc/named.conf.default
/var/named/chroot/etc/rndc.conf
/var/named/chroot/etc/rndc.conf.sample

Cause

Missing configuration files or corrupted installation of BIND DNS server.

Resolution

  1. Create server-wide configuration only backup or manually create backups of all customized configuration files.

  2. Copy default BIND configuration file as the following:

    # cp -a /var/named/chroot/etc/named.conf.default /var/named/chroot/etc/named.conf
  3. Regenerate Plesk configuration files:

    On Plesk 12.0 and below:

    # /usr/local/psa/bin/repair --run

    WARNING: this command will reset all custom configuration settings for DNS, Mail and Web servers. Use backups created on the first step to manually restore customized configuration files afterwards.

    On Plesk 12.5:

    # /usr/local/psa/bin/repair --dns
  4. If aforementioned solution is not applicable or does not resolve the issue, then re-install BIND DNS server by means of Plesk autoinstaller:

    # /usr/local/psa/admin/bin/autoinstaller --select-product-id plesk --select-release-current --remove-component bind

    # /usr/local/psa/admin/bin/autoinstaller --select-product-id plesk --select-release-current --install-component bind
Have more questions? Submit a request
Please sign in to leave a comment.