Dynamic DNS not working

Bob Vance bobvance at alumni.caltech.edu
Tue May 15 14:37:39 UTC 2001


What are the errors that you are getting in syslog?

I use BIND 9.1.2 with dhcp-3.0rc3 and it works.

However, DDNS has had a spotty history with 'dhcpd' 3.0b2.
DDNS seemed to work with early versions and then it got broken
somewhere -- I can't remember exactly where, but at least -pl23
and -pl24 didn't work.
I didn't get a complete working version again until dhcp-3.0rc3.
I'd tell you to go get it, but the ftp server is down ;>)
The last time I looked (a couple of weeks), they were at rc4 and
probably further by now -- new versions had been coming out every 2-3
days for a while :)


/etc/dhcpd.conf:

I use
    ddns-update-style interim;
and it works (rc3)



/etc/named.conf:

You don't need the zone for
  zone "1.0.168.192.in-addr.arpa" {


You don't need to allow updates for
    zone "0.0.127.in-addr.arpa" {


Your
        forward first;

in the global "options" section probably should be

        forward only;

(but not necessarily, depending on what you want :)

Remove the
        forward first;
        forwarders { ...

from the foo.com zone def -- you're authoritative for that zone.


Finally, you're listening on only

        listen-on { 192.168.0.1; };

You should probably

        listen-on { localhost ; };

which gets 127.0.0.1 as well as local NIC IPs.
'dhcpd' will try to use normal, local resolver to get to the SOA of the
dynamic zone to be updated.
Thus, if your /etc/resolv.conf had something like:

    domain foo.com
    nameserver 127.0.0.1

then it wouldn't work (since you are listening only on 192.168.0.1

-------------------------------------------------
Tks        | <mailto:BVance at sbm.com>
BV         | <mailto:BobVance at alumni.caltech.edu>
Sr. Technical Consultant,  SBM, A Gates/Arrow Co.
Vox 770-623-3430           11455 Lakefield Dr.
Fax 770-623-3429           Duluth, GA 30097-1511
=================================================





-----Original Message-----
From: bind-users-bounce at isc.org [mailto:bind-users-bounce at isc.org]On
Behalf Of troy hakala
Sent: Tuesday, May 15, 2001 2:24 AM
To: comp-protocols-dns-bind at moderators.isc.org
Subject: Dynamic DNS not working


I can't get DDNS working automatically. I can get the DNS server updated
if
I run nsupdate manually, but it doesn't work automatically. I'm running
bind
9.1.1rc3 and dhcpd 3.0b2pl19. What am I doing wrong?

Below are samples of my dhcpd.conf & named.conf. I think I've got all
the
settings, i.e., ddns-updates, -update-style, allow-update, etc. Is there
a
good HOWTO on DDNS?

Thanks!!

/etc/dhcpd.conf:
--------------------
ddns-updates on;
ddns-update-style ad-hoc;

subnet 192.168.0.0 netmask 255.255.255.0 {
   range 192.168.0.2 192.168.0.245;
   ddns-updates on;
   ddns-domainname "foo.com";
   ddns-rev-domainname "in-addr.arpa";
}

/etc/named.conf:
-----------------
options {
        directory "/var/named";
        //query-source 192.168.0.1 * port 53;
        forward first;
        forwarders {
                xxx.xxx.xxx.xxx;
                xxx.xxx.xxx.xxx;
        };
        listen-on { 192.168.0.1; };

};

//
// a caching only nameserver config
//
zone "." {
        type hint;
        file "named.ca";
};

zone "0.0.127.in-addr.arpa" {
        type master;
        file "named.local";
        allow-update {localhost;};
};


zone "1.0.168.192.in-addr.arpa" {
        type master;
        file "named.local";
        allow-update {localhost;};
};

zone "foo.com" {
        type master;
        forward first;
        forwarders {
                xxx.xxx.xxx.xxx;
                xxx.xxx.xxx.xxx;
        };
        file "named.local";
        allow-update {localhost;};
};

// reverse zone
zone "0.168.192.in-addr.arpa" {
        type master;
        notify no;
        file "named.reverse";
        allow-update {localhost;};
};






More information about the bind-users mailing list