joel112 |
05-25-2006 10:20 AM |
DDNS with BIND and ISC-DHCPD
I'm having real problems getting DDNS to work.
named.conf
Code:
include "/etc/namedb/rndc.key";
options {
directory "/etc/namedb";
pid-file "/var/run/named/pid";
dump-file "/var/dump/named_dump.db";
statistics-file "/var/stats/named.stats";
listen-on { 10.203.1.7; };
forwarders {
10.203.1.4;
10.203.1.5;
};
};
// If you enable a local name server, don't forget to enter 127.0.0.1
// first in your /etc/resolv.conf so this server will be queried.
// Also, make sure to enable it in /etc/rc.conf.
zone "." {
type hint;
file "named.root";
};
zone "0.0.127.IN-ADDR.ARPA" {
type master;
file "master/localhost.rev";
};
zone "1.203.10.in-addr.arpa" {
type master;
file "master/1.203.10.in-addr.arpa";
allow-update { localhost; };
};
zone "enodis.com" {
type slave;
masters {
10.0.1.1;
};
file "/etc/namedb/enodis.com.hosts";
};
zone "viscount-catering.co.uk" {
type master;
file "/etc/namedb/viscount-catering.co.uk.hosts";
allow-update { localhost; };
};
dhcpd.conf
Code:
#Global
option subnet-mask 255.255.0.0;
option domain-name "viscount-catering.co.uk";
option routers 10.203.0.1;
option domain-name-servers 10.203.1.7, 10.203.1.5;
ddns-domainname "viscount-catering.co.uk";
ddns-rev-domainname "viscount-catering.co.uk";
default-lease-time 2400;
max-lease-time 7200;
ddns-update-style interim;
# Local Clients
subnet 10.203.0.0 netmask 255.255.0.0 {
authoritative;
allow client-updates;
allow unknown-clients;
ddns-updates on;
ddns-update-style interim;
range 10.203.4.1 10.203.4.254;
}
# Client Reverse
key rndc-key {
secret <blah>;
algorithm hmac-md5;
}
zone viscount-catering.co.uk. {
primary 10.203.1.7;
key rndc-key;
}
When a client connects, it gets the dhcp lease ok, but it wont update the DNS. i get
May 25 14:31:25 intranet dhcpd: Unable to add forward map from prodctrl1.viscount-catering.co.uk to 10.203.4.81: timed out
I cant see what is wrong, and nothing i've searched for seems to give me any clues as to what may be wrong.
Joel
|