<div dir="ltr"><div><div><div>I like this idea. <br><br></div>But thinking about it....<br><br></div>When the dhcpd server assign a static IP to a device, it also instruct bind to add an entry in the DNS zone file. One thing I realized is that if a device didn't renew his lease, the entry in the DNS zone file is not removed. I would have thought to use the zone files to know if a device is in use or not. I had in mind that the lease time would have help to know if a device therefore an IP is use or not. In other words, a device requires an IP and the dhcpd server assigned it a statically defined IP address. The dhcpd server also instruct bind to add an entry in the appropriate zone file. Eventually the device is turned off, the lease time reach its limit then I would have expected the dhcpd server to instruct bind to remove the entry regarding this device but it is not the case. Then I could have take a look at the zone files to know what is in used and I would know what is not in use.<br><br></div>Either I made something in my configuration or I was expecting too much from dhcpd and bind.<br><div><br></div><div>Thanks,<br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 24, 2016 at 12:11 PM, Chuck Anderson <span dir="ltr"><<a href="mailto:cra@wpi.edu" target="_blank">cra@wpi.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, Feb 24, 2016 at 05:04:10PM +0000, Simon Hobson wrote:<br>
> Patrick Trapp <<a href="mailto:ptrapp@nex-tech.com">ptrapp@nex-tech.com</a>> wrote:<br>
><br>
> > If you are using host entries to dictate what address a device gets (and not allowing devices to grab random addresses - effectively making them static without having to configure it on the device), then when you delete that host entry from the dhcpd.conf, you would know that address is free.<br>
><br>
> Yes, but I think the primary issue is knowing that the assignment is no longer needed - as in, that device hasn't been here for a while. Jim has given an example of how I suspect most systems manage it - literally keep track of what IPs and MACs are in use, and see if any of them go stale.<br>
><br>
> An alternative approach could be to use reserved leases. That way, each usage of the assignment goes through the normal DHCP lifecycle - including DNS updates. By tracking lease usage etc you can then see if a lease is no longer being used.<br>
><br>
> Basically it's the old problem - when something is needed for something else to work then it gets noticed, when that something is no longer needed then it just gets forgotten about.<br>
<br>
</span>One other possibility if you can force everyone to use DHCP is just<br>
keep the DHCP logs and look at them from the last time a device<br>
DHCP'd. That way you can keep using fixed-address assignments, but<br>
managed via DHCP. It helps if you have switches that support DHCP<br>
Snooping, ARP Inspection, IP Source Guard so you can really enforce<br>
the use of DHCP.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</div></div></blockquote></div><br></div>