This tool provides a web based ui for leases file of the famous DNS/DHCP daemon dnsmasq.
A /var/lib/misc/dnsmasq.leases
file with the following content
1504409608 11:11:11:11:11:11 192.168.0.10 Client1 01:11:11:11:11:11:11
1504409397 22:22:22:22:22:22 192.168.0.18 Client2 *
0 33:33:33:33:33:33 192.168.0.1 ServerWithStaticIP 01:33:33:33:33:33:33
will produce
After cloning the repository run python dnsmasq-leases-ui.py
docker run \
-p 5000:5000 \
-v /var/lib/misc/dnsmasq.leases:/var/lib/misc/dnsmasq.leases:ro \
--name dnsmasq-leases-ui \
fschlag/dnsmasq-leases-ui:latest
For both variants there are two options to access it:
- Human readable HTML:
http://<hostname or ip>:5000
- JSON Representation:
http://<hostname or ip>:5000/leases
Dockerfile by https://github.com/xakraz