How to view all assigned ip addresses on a Debian DHCP server?

It is usually easy to do on a standalone router through a web interface. How to do it with dhcpd in Debian?


In Debian you have a choice among serveral DHCP servers. I've used udhcpd and isc-dhcp-server before. You are likely using isc-dhcp-server. It records its leases in /var/lib/dhcpd.leases.

Newer leases are appended to this file, so look towards the bottom for recently given leases. Old leases aren't cleaned out until the file reaches some threshold (I don't know what it is off the top of my head).

  • 1
    Also, it is possible to find dhcpd.leases in /var/lib/dhcp/dhcpd.leases. – earthmeLon May 19 '14 at 17:01

My home debian server uses dnsmasq which stores it's leases in

  • On my Debian 9 (stretch) server, file is located at: /var/lib/misc/dnsmasq.leases. Dnsmasq version 2.76. – Daddy32 Apr 24 '17 at 16:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.