I'm having a few issues with DNS/DHCP, I'll ask about these one at a time.
bind 9.9.7-P1, dhcpd 4.2.5-P1, Slackware 64, 14.1
First, old leases seem to hang around forever in /var/state/dhcp/dhcpd.leases, example below. Those listed are from back in March. None of the computers in the lease file are currently connected. Why are they hanging around?
Should static IPs be in there? If so, something is not working.
/var/state/dhcp/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page.# This lease file was written by isc-dhcp-4.2.5-P1lease 192.168.0.101 { starts 6 2015/03/07 11:46:52; ends 0 2015/03/08 11:46:52; tstp 0 2015/03/08 11:46:52; cltt 6 2015/03/07 11:46:52; binding state free; hardware ethernet 00:16:17:46:70:69; uid "\001\000\026\027Fpi";}lease 192.168.0.104 { starts 2 2015/03/17 17:01:10; ends 3 2015/03/18 17:01:10; tstp 3 2015/03/18 17:01:10; cltt 2 2015/03/17 17:01:10; binding state free; hardware ethernet c8:9c:dc:6e:24:e8; uid "\001\310\234\334n$\350";}
Dan: that script worked well.
IPs statically assigned are not in the lease file, eh? Is that correct? None of my dozen-ish static assignments show as active leases.