|
@@ -1,21 +1,21 @@
|
1
|
1
|
#Dynamic DNS security settings
|
2
|
|
-key "dhcpdupdate" { #TODO
|
|
2
|
+key "dhcpdupdate" {
|
3
|
3
|
algorithm hmac-md5;
|
4
|
|
- secret "FYhvwsW1ZtFZqWzsMpqhbg==";
|
|
4
|
+ secret "DHCP_DDNS_KEY";
|
5
|
5
|
};
|
6
|
6
|
|
7
|
7
|
zone dhcp.site.rthoni.com {
|
8
|
|
- primary 10.15.100.1;
|
|
8
|
+ primary DHCP_DNS_SERVER;
|
9
|
9
|
key dhcpdupdate;
|
10
|
10
|
}
|
11
|
11
|
|
12
|
12
|
zone site.rthoni.com {
|
13
|
|
- primary 10.15.100.1;
|
|
13
|
+ primary DHCP_DNS_SERVER;
|
14
|
14
|
key dhcpdupdate;
|
15
|
15
|
}
|
16
|
16
|
|
17
|
17
|
zone 100.15.10.in-addr.arpa. {
|
18
|
|
- primary 10.15.100.1;
|
|
18
|
+ primary DHCP_DNS_SERVER;
|
19
|
19
|
key dhcpdupdate;
|
20
|
20
|
}
|
21
|
21
|
|
|
@@ -33,36 +33,36 @@ use-host-decl-names on;
|
33
|
33
|
authoritative;
|
34
|
34
|
log-facility local7;
|
35
|
35
|
|
36
|
|
-subnet 10.15.100.0 netmask 255.255.255.0 {
|
|
36
|
+subnet DHCP_SUBNET netmask DHCP_NETMASK {
|
37
|
37
|
|
38
|
38
|
# Dynamic DNS update
|
39
|
39
|
ddns-updates off; #TODO
|
40
|
40
|
ddns-update-style interim;
|
41
|
41
|
update-static-leases off;
|
42
|
|
- ddns-domainname "dhcp.site.rthoni.com";
|
43
|
|
- ddns-rev-domainname "100.15.10.in-addr.arpa.";
|
|
42
|
+ ddns-domainname "DHCP_DYN_IPS_DOMAIN";
|
|
43
|
+ ddns-rev-domainname "DHCP_REV_DOMAIN";
|
44
|
44
|
|
45
|
45
|
|
46
|
46
|
# IP settings
|
47
|
|
- range 10.15.100.50 10.15.100.250;
|
48
|
|
- option subnet-mask 255.255.255.0;
|
49
|
|
- option broadcast-address 10.15.100.255;
|
50
|
|
- option routers 10.15.100.1;
|
|
47
|
+ range DHCP_IP_FIRST DHCP_IP_LAST;
|
|
48
|
+ option subnet-mask DHCP_NETMASK;
|
|
49
|
+ option broadcast-address DHCP_BROADCAST;
|
|
50
|
+ option routers DHCP_ROUTERS;
|
51
|
51
|
|
52
|
52
|
# DNS settings
|
53
|
|
- option domain-name "site.rthoni.com";
|
54
|
|
- option domain-search "site.rthoni.com rthoni.com";
|
55
|
|
- option domain-name-servers 10.15.100.1;
|
|
53
|
+ option domain-name "DHCP_SITE_DOMAIN";
|
|
54
|
+ option domain-search "DHCP_SITE_DOMAIN DHCP_DOMAIN";
|
|
55
|
+ option domain-name-servers DHCP_DNS_SERVER;
|
56
|
56
|
|
57
|
57
|
# Push custom routes to clients
|
58
|
58
|
#option classless-routes 24, 10,15,42, 10.15.12,2;
|
59
|
59
|
#option classless-routes-win 24, 10,15,42, 10.15.12,2;
|
60
|
60
|
|
61
|
61
|
# Netboot settings
|
62
|
|
- next-server 10.15.100.1;
|
|
62
|
+ next-server DHCP_TFTP_SERVER;
|
63
|
63
|
#option root-path "10.15.100.1:/pxeroot/ubuntu";
|
64
|
64
|
if exists user-class and ( option user-class = "iPXE-rthoni" ) {
|
65
|
|
- option domain-search "site.rthoni.com";
|
|
65
|
+ option domain-search "DHCP_SITE_DOMAIN";
|
66
|
66
|
filename "http://netboot/boot.ipxe";
|
67
|
67
|
}
|
68
|
68
|
else {
|
|
@@ -71,7 +71,7 @@ subnet 10.15.100.0 netmask 255.255.255.0 {
|
71
|
71
|
|
72
|
72
|
# Static IP hosts
|
73
|
73
|
group {
|
74
|
|
- ddns-domainname "site.rthoni.com";
|
|
74
|
+ ddns-domainname "DHCP_SITE_DOMAIN";
|
75
|
75
|
}
|
76
|
76
|
}
|
77
|
77
|
|