|
@@ -24,6 +24,16 @@ zone DHCP_REV_DOMAIN {
|
24
|
24
|
option classless-routes code 121 = array of unsigned integer 8;
|
25
|
25
|
option classless-routes-win code 249 = array of unsigned integer 8;
|
26
|
26
|
|
|
27
|
+# UniFi classes
|
|
28
|
+option space ubnt;
|
|
29
|
+option ubnt.unifi-address code 1 = ip-address;
|
|
30
|
+
|
|
31
|
+class "ubnt" {
|
|
32
|
+ match if substring (option vendor-class-identifier, 0, 4) = "ubnt";
|
|
33
|
+ option vendor-class-identifier "ubnt";
|
|
34
|
+ vendor-option-space ubnt;
|
|
35
|
+}
|
|
36
|
+
|
27
|
37
|
# Leases settings
|
28
|
38
|
default-lease-time 600;
|
29
|
39
|
max-lease-time 7200;
|
|
@@ -51,6 +61,9 @@ subnet DHCP_SUBNET netmask DHCP_NETMASK {
|
51
|
61
|
option broadcast-address DHCP_BROADCAST;
|
52
|
62
|
option routers DHCP_ROUTERS;
|
53
|
63
|
|
|
64
|
+ # UniFi settings
|
|
65
|
+ option ubnt.unifi-address DHCP_UNIFI_CONTROLLER_IP;
|
|
66
|
+
|
54
|
67
|
# DNS settings
|
55
|
68
|
option domain-name "DHCP_SITE_DOMAIN";
|
56
|
69
|
option domain-search "DHCP_SITE_DOMAIN", "DHCP_DOMAIN", "DHCP_DYN_IPS_DOMAIN";
|