Browse Source

dnsleases added

84582af
Dirk Alders 1 year ago
parent
commit
327c6b0ebd
1 changed files with 14 additions and 0 deletions
  1. 14
    0
      dnsleases

+ 14
- 0
dnsleases View File

@@ -0,0 +1,14 @@
1
+#!/bin/bash
2
+
3
+LEASES_FILE=/var/lib/misc/dnsmasq.leases
4
+
5
+print_vlan()
6
+{
7
+    echo "Hosts in VLAN $1"
8
+    grep 192.168.$1. $LEASES_FILE | sed 's/^/  * /'
9
+}
10
+
11
+for vl in 20 30 40 50 60 90
12
+do
13
+    print_vlan $vl
14
+done

Loading…
Cancel
Save