LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   SOLUTION: named: loading from master file managed-keys.bind failed: file not found (https://www.linuxquestions.org/questions/linux-server-73/solution-named-loading-from-master-file-managed-keys-bind-failed-file-not-found-876137/)

catkin 04-20-2011 10:48 AM

SOLUTION: named: loading from master file managed-keys.bind failed: file not found
 
Hello :)

This fix took a lot of netsearching and a bit of luck so I'll just leave it here ...
  1. ENVIRONMENT (others may be similar): Debian 6.0 Squeeze, bind 9.7.2
  2. ERROR MESSAGE (in /var/log/syslog): managed-keys-zone ./IN: loading from master file managed-keys.bind failed: file not found
  3. FIX create file managed-keys.bind in bind's working directory with the same owner, group and read & write permissions as the directory.

Exactly how to do this depends on whether BIND/named is configured to chroot. On Squeeze this is conventionally configured on the OPTIONS line of /etc/default/bind9 with something like -t /var/chroot/bind9. If BIND/named is running a quick way to find out is ps -ef | grep named. If named is chrooted, prefix the following paths with the chroot directory. The paths are from Squeeze; other distros may be different.

BIND/named's default working directory is /var/cache/bind; this could have been modified on the "directory" line in /etc/bind/named.conf.options.

Best

Charles

catkin 04-20-2011 10:55 AM

Taking off the zero reply list and marking SOLVED

maruz 11-08-2011 02:51 PM

Quote:

Originally Posted by catkin (Post 4330614)
[*]ENVIRONMENT (others may be similar): Debian 6.0 Squeeze, bind 9.7.2[*]FIX create file managed-keys.bind in bind's working directory with the same owner, group and read & write permissions as the directory.[/LIST]
BIND/named's default working directory is /var/cache/bind; this could have been modified on the "directory" line in /etc/bind/named.conf.options.

this is what i did to get free of this error:

Code:

touch /var/cache/bind/managed-keys.bind
chown bind:bind /var/cache/bind/managed-keys.bind



All times are GMT -5. The time now is 03:42 AM.