Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

up vote 4 down vote accepted

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).

share|improve this answer
    
Also, it is possible to find dhcpd.leases in /var/lib/dhcp/dhcpd.leases. –  earthmeLon May 19 at 17:01

My home debian server uses dnsmasq which stores it's leases in
/var/lib/dnsmasq/dnsmasq.leases

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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