dhcpd

The DHCP server program from the Internet Systems Consortium that hands out IP addresses and records each one in a plain-text leases file.

In more detail

It reads its settings from dhcpd.conf and appends every lease it grants to dhcpd.leases, often under /var/lib/dhcp, in a documented format that scripts can parse. Its developer has declared the software end of life, with the last release in 2022, and recommends its Kea server instead, but it still runs on many existing networks. Other DHCP servers keep similar lease records.

Examples

# The format of this file is documented in the dhcpd.leases(5) manual page.
for ip, body in re.findall(r"lease (\S+) \{(.*?)\}", text, re.S):

Related terms

Taught in

References