Comment 8 for bug 341817

Revision history for this message
Lorin Soura (gr8can8dian) wrote :

After some extensive tinkering, I came up with this solution to the rndc.key permissions issue:
As the root user (or sudo) do the following:

cp /etc/bind/rndc.key /etc/dhcp3/
chown dhcp:dhcp /etc/dhcp3/rndc.key
chmod 640 /etc/dhcp3/rndc.key

In "/etc/dhcp3/dhcpd.conf" add this line:
include "/etc/dhcp3/rndc.key";

chown root:bind /etc/bind/rndc.key
chmod 640 /etc/bind/rndc.key

In /etc/bind/named.conf add this line to the top of the file:
include "/etc/bind/rndc.key";

In /etc/bind/named.conf add this line to the bottom of the file:

controls {
  inet 127.0.0.1 port 953
  allow { 127.0.0.1; } keys { "rndc-key"; };
};