dhcpd + named = ddns ?
Cricket Liu
cricket at nxdomain.com
Sun Aug 26 22:28:44 UTC 2001
> First the error message:
> Aug 26 12:46:25 paranoid dhcpd: if IN A insomniac.private.network
> rrset doesn't exist add 21600 IN A insomniac.private.network
> 192.168.1.3: no such domain.
That's actually not an error. dhcpd is simply telling you what it's up to.
In this case, it's sending a dynamic update to your name server to add
an address record for insomniac.private.network, but only if that domain
name doesn't already have an address.
> paranoid is the name of the router box, insomniac is the name of the
> client in this case, 192.168.1.3 the IP dhcpd assigned insomniac.
> That's one big line that I can't quite decipher, it seems to say 'put
> something in your dns db' but also says something about a nonexistant
> domain. First I need some deciphering as to what that means, then
> maybe how to fix it (though I should be able to figure it out from
> there). Here are my config files (all from /etc/namedb, and
> dhcpd.conf from /etc):
>
> paranoid# cd /etc/namedb
> paranoid# cat named.conf
> # $NetBSD: named.conf,v 1.6 2000/04/26 01:33:27 itojun Exp $
>
> options {
> directory "/etc/namedb";
> version "nothing to see here, move along...";
> listen-on { 192.168.1.254; 127.0.0.1; };
>
> forward first;
> forwarders { 24.3.196.33; 24.3.196.34; };
> };
>
> acl mynet {
> 192.168.1/24;
> 127.0.0.1;
> };
>
> zone "." {
> type hint;
> file "root.cache";
> };
>
> zone "127.IN-ADDR.ARPA" {
> type master;
> file "127";
> };
>
> zone "private.network" {
> notify no;
> type master;
> file "private.network";
> allow-query { mynet; };
> allow-update { mynet; };
> allow-transfer { mynet; };
> };
>
> zone "1.168.192.in-addr.arpa" {
> notify no;
> type master;
> file "192.168.1";
> };
You probably want an allow-update substatement for this
zone, too, or else dhcpd won't be able to update the reverse
mapping for DHCP clients.
> paranoid# cat /etc/dhcpd.conf
> server-identifier paranoid.private.network;
> authoritative;
>
> ddns-update-style ad-hoc;
> ddns-domainname "private.network";
>
> dynamic-bootp-lease-length 604800;
> max-lease-time 1209600;
>
> subnet 192.168.1.0 netmask 255.255.255.0 {
> range 192.168.1.1 192.168.1.199;
> option subnet-mask 255.255.255.0;
> option broadcast-address 192.168.1.255;
> option routers 192.168.1.254;
> option domain-name-servers 192.168.1.254;
> option domain-name "private.network";
>
> one-lease-per-client on;
> }
You didn't say which version of dhcpd you run, and I'm afraid I
don't keep up with DHCP stuff as well as I do DNS stuff, but my
ISC 3.0rc12 dhcpd is set up like I think you want and my dhcpd.conf
begins like this:
option domain-name "nxdomain.com";
ddns-rev-domainname "in-addr.arpa";
ddns-update-style interim;
cricket
More information about the bind-users
mailing list