Pages

2011-01-21

BIND - Error "loading from master file managed-keys.bind failed: file not found"

Platform :
FreeBSD

Error message :
Every time restarting the BIND DNS server, the log file will have this entry :
general: error: managed-keys-zone ./IN: loading from master file managed-keys.bind failed: file not found
BIND DNS continue to work though.

Solution :
Create a empty file in /var/named/etc/namedb, name "managed-keys.bind":
touch /var/named/etc/namedb/managed-keys.bind

Why :
The file "managed-keys.bind" is used for managing keys in DNSSEC. By default, BIND is looking for it. Even though you might not be using this feature, creating the file in empty will make the error message go away.


Sayonara !!!

4 comments:

  1. That location is not the default on Ubuntu Server 11.04. Instead the default 'directory', referenced in /etc/bind/named.conf.options is @ /var/cache/bind/

    ReplyDelete
  2. On openSUSE 12.1, this works:
    touch /var/lib/named/dyn//managed-keys.bind

    ReplyDelete
  3. On FreeBSD 9.0-RC3

    sudo touch /var/named/etc/namedb/working/managed-keys.bind

    does the trick.

    Thanks for the tip!

    ReplyDelete