From 9516b633fa651875503bb61b5194bfb7e5f409e3 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 6 Apr 2023 17:37:27 -0700 Subject: tools/dnsmasq-leases-html: create a HTML page with leases from dnsmasq Parse the file that contains all the leases assigned by dnsmasq, and create a static HTML page from it. This can be served by nginx to make it easy to see what IP is assigned to a machine, and which machines are currently on the network. --- tools/dnsmasq-leases-html/templates/index.html | 60 ++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 tools/dnsmasq-leases-html/templates/index.html (limited to 'tools/dnsmasq-leases-html/templates') diff --git a/tools/dnsmasq-leases-html/templates/index.html b/tools/dnsmasq-leases-html/templates/index.html new file mode 100644 index 0000000..913a0c9 --- /dev/null +++ b/tools/dnsmasq-leases-html/templates/index.html @@ -0,0 +1,60 @@ + + + + + Leases assigned by dnsmasq + + + + + + + + + + + + {% for lease in leases %} + + + + + + + {% endfor %} +
IP addressMAC addressHostnameExpire
{{ lease.IP }}{{ lease.MAC }}{{ lease.hostname }}{{ lease.expire }}
+ + -- cgit 1.4.1