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

Platform :

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 !!!


Carlos Rafael Flores Ramirez said...

Thanks! Worked for me on Gentoo Server

spleach said...

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/

steve said...

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

elvis said...

On FreeBSD 9.0-RC3

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

does the trick.

Thanks for the tip!