<div dir="ltr"><div dir="ltr">FWIW, YMMV, etc.<div><br></div><div>I wrote a database system many years ago (which is still in use) to handle this.</div><div><br></div><div>In a nutshell, it tracks a list of reserved addresses by subnet, and dumps out a config fragment containing the fixed address entries. Then it generates the subnet pools by iterating through the subnet ranges and skipping the fixed addresses.  So I get something like this:</div><div><br></div><div>host xxx { hardware ethernet xx.xx.xx.xx.xx.xx; fixed address 10.10.10.7; }</div><div>...</div><div>subnet 10.10.10.0 netmask 255.255.255.0 {</div><div>  pool { </div><div>    range 10.10.10.1 10.10.10.6;</div><div>    range 10.10.10.8 10.10.10.254;</div><div>  }</div><div>}</div></div><div><br></div>Obviously that's only a small fragment.<div><br></div><div>Whenever a change is made to the database the system regenerates the config files and reloads the servers. Then it import/parse the dhcpd.leases file, and put the last lease date in as a "last seen" attribute in the database.</div><div><br></div><div>Andrew</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 27, 2020 at 3:21 PM Bob Harold <<a href="mailto:rharolde@umich.edu">rharolde@umich.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">+1<div>I want to know when it last renewed its lease - recently, years ago, or never.<br clear="all"><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><br>-- <br>Bob Harold</div><div><br></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 27, 2020 at 2:46 PM Brennan,Andrew <<a href="mailto:andrew.brennan@drexel.edu" target="_blank">andrew.brennan@drexel.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have wanted this for years - that lease entry would let me know whether or not the machine is still configured to acquire it’s address via DHCP or if the enduser has taken it upon themselves to manually configure the host.  If this ends up as a feature request, I’m +1 here.<br>
<br>
andrew.<br>
<br>
> On Mar 27, 2020, at 2:35 PM, Nate Collins <<a href="mailto:ncollins@xes-inc.com" target="_blank">ncollins@xes-inc.com</a>> wrote:<br>
> <br>
> External.<br>
> <br>
> Hello,<br>
> <br>
> Is there a setting that controls whether or not fixed-address leases<br>
> in dhcpd.conf will get added to the dhcpd.leases file? We have a<br>
> use-case where we would like them to be, and they aren't on 4.3.3 (or<br>
> we unknowingly have a setting preventing them from getting added). I<br>
> took a look through the various manpages and didn't see anything relevant.<br>
> <br>
> Thanks, Nate<br>
> _______________________________________________<br>
> dhcp-users mailing list<br>
> <a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br>
> <a href="https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fdhcp-users&amp;data=02%7C01%7Candrew.brennan%40drexel.edu%7C9eed272971b14d28164408d7d27da854%7C3664e6fa47bd45a696708c4f080f8ca6%7C0%7C1%7C637209309455287580&amp;sdata=3gXa4%2Bv5UEPNsi258bRY2z20UNcCFUB7JNA9fkALQTU%3D&amp;reserved=0" rel="noreferrer" target="_blank">https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fdhcp-users&amp;data=02%7C01%7Candrew.brennan%40drexel.edu%7C9eed272971b14d28164408d7d27da854%7C3664e6fa47bd45a696708c4f080f8ca6%7C0%7C1%7C637209309455287580&amp;sdata=3gXa4%2Bv5UEPNsi258bRY2z20UNcCFUB7JNA9fkALQTU%3D&amp;reserved=0</a><br>
<br>
_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">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>
</blockquote></div>
_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">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>
</blockquote></div></div></div>