gnoovy |
02-15-2009 05:08 AM |
Dynamic DNS and DHCP on Fedora ore 9 / Centos 5.2
hello,
i would like to configure ddns over dhcp on a fedora core 9 or centos 5.2server. So I'm using the rndc.key under /etc to update the dns-zones over dhcp. The reverse-zone-updating is worked correctly but for the forward-zone-update comes the message in /var/log/messages: " client <ip-adress>#1121: update 'linuxnet.local/IN' denied. I don't know why. Here is my dhcp.conf, named.conf and my zone-files: I hope anyone can help me ;-)
Code:
include "/etc/rndc.key";
controls {
inet 127.0.0.1 port 953 allow { 127.0.0.1; 192.168.178.250; } keys { "rndckey"; };
};
options {
directory "/etc";
pid-file "/var/run/named/named.pid";
// forwarders { 192.168.178.254; };
};
zone "linuxnet.local" {
type master;
file "/var/named/linuxnet.local.hosts";
allow-update { key "rndckey"; 192.168.178.250; };
};
zone "178.168.192.in-addr.arpa" {
type master;
file "/var/named/192.168.178.rev";
allow-update { key "rndckey"; 192.168.178.250; };
};
Code:
$ORIGIN .
$ttl 38400
linuxnet.local. IN SOA centos-server.linuxnet.local. root.linuxnet.local. (
1234634931
10800
3600
604800
38400 )
NS centos-server.linuxnet.local.
$ORIGIN linuxnet.local.
centos-server.linuxnet.local. IN A 192.168.178.250
Code:
$ORIGIN .
$TTL 38400 ; 10 hours 40 minutes
178.168.192.in-addr.arpa IN SOA centos-server.linuxnet.local. root.linuxnet.local. (
1234635042 ; serial
10800 ; refresh (3 hours)
3600 ; retry (1 hour)
604800 ; expire (1 week)
38400 ; minimum (10 hours 40 minutes)
)
NS centos-server.linuxnet.local.
$ORIGIN 178.168.192.in-addr.arpa.
250 PTR centos-server.linuxnet.local.
$TTL 21600 ; 6 hours
Code:
#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
#
ddns-update-style interim;
ddns-updates on;
allow client-updates;
allow unknown-clients;
include "/etc/rndc.key";
subnet 192.168.178.0 netmask 255.255.255.0 {
option domain-name-servers 192.168.178.250;
option domain-name "linuxnet.local";
ddns-rev-domainname "in-addr.arpa";
option routers 192.168.178.254;
authoritative;
ddns-domainname "linuxnet.local";
range 192.168.178.30 192.168.178.40;
}
zone linuxnet.local. {
primary 192.168.178.250;
key rndckey;
}
zone 178.168.192.in-addr.arpa. {
primary 192.168.178.250;
key rndckey;
}
|