Has an address record but no DHCID, not mine.

Bill Shirley bill at c3po.polymerindustries.biz
Tue Sep 5 16:25:37 UTC 2017


In your config, i noticed your comment:

############################################################################# # DDNS Delete Old entries 
############################################################################# # I had to remove my on commit script. # With the 
scipt enabled static leases did not get renewed ############################End DDNS Delete Old entries######################

DHCP has a 'static' test that might allow you to run your script only on non-static
leases.  Here's what I use it for:
on commit {
         if static {
                 option dhcp-renewal-time        = encode-int(43200 / 2, 32);    # 43200 = 12 hours
                 option dhcp-rebinding-time      = encode-int(43200 * 7 / 8, 32);
                 ddns-ttl                        = encode-int((43200 / 2) + 1, 32);
                 #ddns-ttl                       = encode-int((lease-time / 2) + 2, 32);         # backup DHCP partner
         } else {
                 set vendor_class_identifier = option vendor-class-identifier;

                 option dhcp-renewal-time        = encode-int(lease-time / 2, 32);
                 option dhcp-rebinding-time      = encode-int(lease-time * 7 / 8, 32);
                 ddns-ttl                        = encode-int((lease-time / 2) + 1, 32);
                 #ddns-ttl                       = encode-int((lease-time / 2) + 2, 32);         # backup DHCP partner
         }
}
(Note, if the DNS ttl ends with a 1, the lease was issued by the primary DHCP server; if 2 by the secondary.)
Example:
RFgun-84b947.lan.example.com. 18001 IN A    10.99.0.71
RFgun-84bf76.lan.example.com. 18002 IN    A    10.99.0.21


Hope this helps,
Bill

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20170905/903b51c8/attachment.html>


More information about the dhcp-users mailing list