Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I view the dhcpd.leases without having to SSH into the box and view using vi/nano etc.

I used to have webadmin set up on another box but that was when I used the GUI to configure dhcp.

Now I have configured it myself through the terminal and don't want to use webadmin. and viewing the dhcpd.leases file in the web browser was very nifty!

Any software/scripts that automatically export the leases file into a web page that i can view using apache on the server?

share|improve this question
up vote 1 down vote accepted

If you have a web server installed on the same machine, you could just use a symlink to put it into a directory served by the web server.

If you have Apache configured to use /var/www/htdocs, you could use something like this:

ln -s /var/lib/dhcp/dhcpd.leases /var/www/htdocs/leases.txt

(Might need path adjustments depending on your system).

If the access rights are correct, you could read the file with http://hostname/leases.txt afterwards.

If would restrict this to the local network, though.

share|improve this answer
Works a treat. should suffice for what I need. Thank you very much sir! – SamCulley Sep 12 '11 at 14:17

Your Answer


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.