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
- DHCP — Dynamic Host Configuration Protocol, the network service that automatically gives each device joining a network an IP address and other settings.
- DHCP lease — A record that a DHCP server has lent a particular IP address to a particular device for a set length of time.
- IP address — The numeric address, such as 192.168.1.10, that identifies a machine or container on a network.
Taught in
- Asset Lifecycle Management & Media Sanitization — Cybersecurity Fundamentals, GRC & Cryptography