Article ID: 120690, created on Mar 23, 2014, last review on Apr 17, 2016

  • Applies to:
  • Plesk Automation 11.5


  1. DNS does not work, bind service failed to start:

    # /etc/init.d/named start
    Error in named configuration:
    /etc/named.conf:10: open: /etc/rndc.key: file not found
  2. rndc.key file is missing:

    # ll /var/named/run-root/etc/rndc.key
    ls: cannot access /var/named/run-root/etc/rndc.key: No such file or directory
  3. Task Update named pa115dns1.domain.tld fails with error like:

    Multiple errors during NS update: Destination host 'pa115dns1.domain.tld' (#4), IP '' : Internal error: /usr/sbin/rndc /usr/sbin/rndc reconfig failed with code 1 saying: STDOUT: '' STDERR 'rndc: error: /etc/rndc.conf:1: open: /etc/rndc.key: file not found
    rndc: could not load rndc configuration


Re-attaching DNS node corrupted the DNS configuration.


  1. Generate a new key with the following command:

    # rndc-confgen -a -c /var/named/run-root/etc/rndc.key
  2. Set correct permissions:

    # chgrp named /var/named/run-root/etc/rndc.key
    # chmod 640 /var/named/run-root/etc/rndc.key
    # ls -la  /var/named/run-root/etc/rndc.key
    -rw-r----- 1 root named 77 Mar 21 15:27 /var/named/run-root/etc/rndc.key

Note: /var/named/run-root/var/pem_zones file can be corrupted too, please check this article if fix is needed.

Search Words

regenerate rndc key

nameserver error cannot find

named failed to start


open: /etc/rndc.key: file not found

could not load rndc configuration

33a70544d00d562bbc5b17762c4ed2b3 e0aff7830fa22f92062ee4db78133079 caea8340e2d186a540518d08602aa065

Email subscription for changes to this article
Save as PDF