Named fails to start with error: the key is invalid

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux
  • Plesk 10.3 for Linux

Created:

2016-11-16 13:03:25 UTC

Modified:

2016-12-21 19:51:21 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Named fails to start with error: the key is invalid

Symptoms

Named fails to start with error the key is invalid:

    # /etc/init.d/named status
WARNING: key file (/etc/rndc.key) exists, but using default configuration file (/etc/rndc.conf)
rndc: connection to remote host closed
This may indicate that
* the remote server is using an older version of the command protocol,
* this host is not authorized to connect,
* the clocks are not synchronized, or
* the key is invalid.

Cause

Rndc secret key does not match in /etc/named.conf and /etc/rndc.conf .

Resolution

  1. Make sure that rnds key is the same in /etc/named.conf and /etc/rndc.conf :

    #  less /etc/named.conf |grep secret
    secret "CeMgS23y0oWE20nyv0x40Q==";

    # less /etc/rndc.conf |grep secret
    secret "CeMgS23y0oWE20nyv0x40Q==";
  2. If secret key does not correspond, update one of these files and set the same key.

Have more questions? Submit a request
Please sign in to leave a comment.