i'm trying to dynamically update DNS records when DHCP give out addresses. but even though I have specified allow-update with a key in /etc/bind/named.conf.local and specified the same key in /etc/dhcp/dhcpd.conf. access is denied and it times out. i also tried to set a ip address in allow update instead, but this doesen't seem to work either. is there something i have forgotten to add here?
tail -f /var/log/syslog
client 127.0.0.1#53398: update 'dirks.crtn/IN' denied due to allow-query
dhcpd: unable to add forward map from sysadmin.dirks.crtn. to 192.168.56.102: timed out
dhcpd: DHCPREQUEST for 192.168.56.102 from 08:00:27:25:73:69 (sysadmin) via eth1
dhcpd: DHCPACK on 192.168.56.102 to 08:00:27:25:73:69 (sysadmin) via eth1
the configurations in (/etc/dhcp/dhcpd.conf)
ddns-updates on;
ddns-update-style interim;
update-static-leases on;
authoritative;
key "update-key" {
algorithm hmac-md5;
secret "un7T4dJk6yjR6NS5xZql8w==";
};
allow unknown-clients;
use-host-decl-names on;
default-lease-time 1814400; #21 days
max-lease-time 1814400; #21 days
log-facility local7;
zone dirks.crtn. {
primary localhost;
key update-key;
}
zone 56.168.192.in-addr.arpa. {
primary localhost;
key update-key;
}
subnet 192.168.56.0 netmask 255.255.255.0 {
range 192.168.56.3 192.168.56.255;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.56.2;
option domain-name "dirks.crtn";
ddns-domainname "dirks.crtn.";
ddns-rev-domainname "in-addr.arpa.";
}
/etc/bind/named.conf.local
key "update-key" {
algorithm hmac-md5;
secret "un7T4dJk6yjR6NS5xZql8w==";
};
zone "dirks.crtn" {
type master;
file "/etc/bind/dirks.crtn.db";
allow-update { key update-key; };
};
zone "56.168.192.in-addr.arpa {
type master;
file "/etc/bind/rev.56.168.192.in-addr.arpa";
allow-update { key update-key; };
};
I appreciate any answer :)
netstat -lepn
output, I bet that your bind doesn't listen where supposed to.