force DDNS update

Carl Karsten carl at personnelware.com
Mon Apr 23 01:10:47 UTC 2007


My dhcp/ddns setup does almost exactly what I want it to.  I think I have one 
little kink to work out:  when the IP of a box changes, bind doesn't pickup the 
change.

If you are wondering: why does the IP change?  good Q.  I have a few A's:

1. duel boot box, both boots have the same hosthame (perhaps I should change 
this)  I boot into Win, it sends hostname=foo and gets IP 1.1.1.1.  I shut that 
down (it does not release the lease on .1) and boot into linux, it sends 
hostname=foo and gets IP 1.1.1.2.

2. I move a box from the IP pool to a fixed IP using dhcp.conf
fixed-address 192.168.1.6 ;

3. swap nic, so new mac.

4. magic?

In any event, anytime dhcpd tells bind foo=X, I don't want bind to argue.  I 
want it to take the new IP and make it so.

the ddns part of /etc/dhcp3/dhcpd.conf:

ddns-updates on;
ddns-update-style interim;
do-forward-updates on;
ddns-domainname "personnelware.com";
ddns-rev-domainname "in-addr.arpa.";
update-static-leases on;
# ddns-ttl 7200;

key DHCP_UPDATER {
         algorithm HMAC-MD5.SIG-ALG.REG.INT;
         secret ZiO1XpvhIDVLRsvnBk9+Qw==;
        };

zone personnelware.com. {
         primary localhost;
         key DHCP_UPDATER;
        }

zone 1.168.192.in-addr.arpa. {
         primary localhost;
          key DHCP_UPDATER;
        }


guessing the only important part of bind.conf:

zone "personnelware.com" {
         type master;
         file "/etc/bind/personnelware.com.db";
         allow-update { key DHCP_UPDATER; };
        };



More information about the dhcp-users mailing list