|
@@ -1,22 +1,22 @@
|
1
|
1
|
#Dynamic DNS security settings
|
2
|
|
-key "dhcpdupdate" {
|
3
|
|
- algorithm hmac-md5;
|
4
|
|
- secret "DHCP_DDNS_KEY";
|
|
2
|
+key DHCP_TSIG_KEY_NAME {
|
|
3
|
+ algorithm DHCP_TSIG_KEY_ALGO;
|
|
4
|
+ secret "DHCP_TSIG_KEY_SECRET";
|
5
|
5
|
};
|
6
|
6
|
|
7
|
|
-zone dhcp.site.rthoni.com {
|
|
7
|
+zone DHCP_DYN_IPS_DOMAIN {
|
8
|
8
|
primary DHCP_DNS_SERVER;
|
9
|
|
- key dhcpdupdate;
|
|
9
|
+ #key DHCP_TSIG_KEY_NAME;
|
10
|
10
|
}
|
11
|
11
|
|
12
|
|
-zone site.rthoni.com {
|
|
12
|
+zone DHCP_SITE_DOMAIN {
|
13
|
13
|
primary DHCP_DNS_SERVER;
|
14
|
|
- key dhcpdupdate;
|
|
14
|
+ #key DHCP_TSIG_KEY_NAME;
|
15
|
15
|
}
|
16
|
16
|
|
17
|
|
-zone 100.15.10.in-addr.arpa. {
|
|
17
|
+zone DHCP_REV_DOMAIN {
|
18
|
18
|
primary DHCP_DNS_SERVER;
|
19
|
|
- key dhcpdupdate;
|
|
19
|
+ #key DHCP_TSIG_KEY_NAME;
|
20
|
20
|
}
|
21
|
21
|
|
22
|
22
|
|
|
@@ -28,6 +28,13 @@ option classless-routes-win code 249 = array of unsigned integer 8;
|
28
|
28
|
default-lease-time 600;
|
29
|
29
|
max-lease-time 7200;
|
30
|
30
|
|
|
31
|
+# Dynamic DNS update
|
|
32
|
+ddns-updates on;
|
|
33
|
+ddns-update-style interim;
|
|
34
|
+update-static-leases on;
|
|
35
|
+#allow client-updates;
|
|
36
|
+ddns-rev-domainname "in-addr.arpa.";
|
|
37
|
+
|
31
|
38
|
# Misc settings
|
32
|
39
|
use-host-decl-names on;
|
33
|
40
|
authoritative;
|
|
@@ -36,12 +43,8 @@ log-facility local7;
|
36
|
43
|
subnet DHCP_SUBNET netmask DHCP_NETMASK {
|
37
|
44
|
|
38
|
45
|
# Dynamic DNS update
|
39
|
|
- ddns-updates off; #TODO
|
40
|
|
- ddns-update-style interim;
|
41
|
|
- update-static-leases off;
|
42
|
46
|
ddns-domainname "DHCP_DYN_IPS_DOMAIN";
|
43
|
|
- ddns-rev-domainname "DHCP_REV_DOMAIN";
|
44
|
|
-
|
|
47
|
+ update-conflict-detection false;
|
45
|
48
|
|
46
|
49
|
# IP settings
|
47
|
50
|
range DHCP_IP_FIRST DHCP_IP_LAST;
|
|
@@ -71,7 +74,26 @@ subnet DHCP_SUBNET netmask DHCP_NETMASK {
|
71
|
74
|
|
72
|
75
|
# Static IP hosts
|
73
|
76
|
group {
|
|
77
|
+ host vm-pxe {
|
|
78
|
+ hardware ethernet 08:00:27:7b:9d:21;
|
|
79
|
+ fixed-address 10.15.100.10;
|
|
80
|
+ }
|
|
81
|
+ host vm-windows {
|
|
82
|
+ hardware ethernet 08:00:27:76:ce:95;
|
|
83
|
+ fixed-address 10.15.100.11;
|
|
84
|
+ }
|
74
|
85
|
ddns-domainname "DHCP_SITE_DOMAIN";
|
|
86
|
+ option host-name = host-decl-name;
|
|
87
|
+ ddns-hostname = config-option host-name;
|
|
88
|
+ }
|
|
89
|
+
|
|
90
|
+ # Force a default hostname if not present
|
|
91
|
+ if option dhcp-message-type = 3 and not exists host-name and config-option host-name = null {
|
|
92
|
+ #ddns-hostname = concat("dyn-", binary-to-ascii(10, 8, "-", leased-address));
|
|
93
|
+ #option host-name = ddns-hostname;
|
|
94
|
+ option host-name = concat("dyn-", binary-to-ascii(10, 8, "-", leased-address));
|
|
95
|
+ ddns-hostname = config-option host-name;
|
|
96
|
+ #log(info, concat("Defaulting hostname to ", config-option host-name, " for ", binary-to-ascii(16, 8, ":", hardware)));
|
75
|
97
|
}
|
76
|
98
|
}
|
77
|
99
|
|