Browse Source

updated dhcp conf

tags/v1.0.0
Robin Thoni 7 years ago
parent
commit
91aaaaa2bb
1 changed files with 37 additions and 3 deletions
  1. 37
    3
      isc-dhcp/dhcpd.conf

+ 37
- 3
isc-dhcp/dhcpd.conf View File

@@ -1,19 +1,48 @@
1
-ddns-update-style none;
1
+#Dynamic DNS security settings
2
+key "dhcpdupdate" { #TODO
3
+        algorithm hmac-md5;
4
+        secret "FYhvwsW1ZtFZqWzsMpqhbg==";
5
+};
2 6
 
7
+zone dhcp.site.rthoni.com {
8
+    primary 10.15.100.1;
9
+    key dhcpdupdate;
10
+}
11
+
12
+zone site.rthoni.com {
13
+    primary 10.15.100.1;
14
+    key dhcpdupdate;
15
+}
16
+
17
+zone 100.15.10.in-addr.arpa. {
18
+    primary 10.15.100.1;
19
+    key dhcpdupdate;
20
+}
21
+
22
+
23
+# Custom routes classes
3 24
 option classless-routes code 121 = array of unsigned integer 8;
4 25
 option classless-routes-win code 249 = array of unsigned integer 8;
5 26
 
27
+# Leases settings
6 28
 default-lease-time 600;
7 29
 max-lease-time 7200;
8 30
 
31
+# Misc settings
9 32
 use-host-decl-names on;
10
-
11 33
 authoritative;
12
-
13 34
 log-facility local7;
14 35
 
15 36
 subnet 10.15.100.0 netmask 255.255.255.0 {
16 37
 
38
+  # Dynamic DNS update
39
+  ddns-updates off; #TODO
40
+  ddns-update-style interim;
41
+  update-static-leases off;
42
+  ddns-domainname "dhcp.site.rthoni.com";
43
+  ddns-rev-domainname "100.15.10.in-addr.arpa.";
44
+
45
+
17 46
   # IP settings
18 47
   range 10.15.100.50 10.15.100.250;
19 48
   option subnet-mask 255.255.255.0;
@@ -39,5 +68,10 @@ subnet 10.15.100.0 netmask 255.255.255.0 {
39 68
   else {
40 69
     filename "ipxe-rthoni.kpxe";
41 70
   }
71
+
72
+  # Static IP hosts
73
+  group {
74
+    ddns-domainname "site.rthoni.com";
75
+  }
42 76
 }
43 77
 

Loading…
Cancel
Save