12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
-
- key "key-internal" {
- algorithm HMAC-MD5
- secret "DNS_TSIG_KEY_INTERNAL_SECRET"
- }
-
- zone DHCP_DYN_IPS_DOMAIN {
- primary DHCP_DNS_MASTER
- key "key-internal"
- }
-
- zone DHCP_SITE_DOMAIN {
- primary DHCP_DNS_MASTER
- key "key-internal"
- }
-
- zone DHCP_REV_DOMAIN {
- primary DHCP_DNS_MASTER
- key "key-internal"
- }
-
-
-
- option classless-routes code 121 = array of unsigned integer 8
- option classless-routes-win code 249 = array of unsigned integer 8
-
-
- default-lease-time 600
- max-lease-time 7200
-
-
- ddns-updates on
- ddns-update-style interim
- update-static-leases on
-
-
-
- use-host-decl-names on
- authoritative
- log-facility local7
-
- subnet DHCP_SUBNET netmask DHCP_NETMASK {
-
-
- ddns-domainname "DHCP_DYN_IPS_DOMAIN"
- update-conflict-detection false
-
-
- range DHCP_IP_FIRST DHCP_IP_LAST
- option subnet-mask DHCP_NETMASK
- option broadcast-address DHCP_BROADCAST
- option routers DHCP_ROUTERS
-
-
- option domain-name "DHCP_SITE_DOMAIN"
- option domain-search "DHCP_SITE_DOMAIN", "DHCP_DOMAIN", "DHCP_DYN_IPS_DOMAIN"
- option domain-name-servers DHCP_DNS_SERVER
-
-
-
-
-
-
- next-server DHCP_TFTP_SERVER
-
- if exists user-class and ( option user-class = "iPXE-rthoni" ) {
- option domain-search "DHCP_SITE_DOMAIN"
- filename "http://netboot/boot.ipxe"
- }
- else {
- filename "ipxe-rthoni.kpxe"
- }
-
-
- group {
- include "/etc/dhcp/config/static_ips.conf"
- ddns-domainname "DHCP_SITE_DOMAIN"
- option host-name = host-decl-name
- ddns-hostname = config-option host-name
- }
-
-
- if option dhcp-message-type = 3 and not exists host-name and config-option host-name = null {
- option host-name = concat("dyn-", binary-to-ascii(10, 8, "-", leased-address));
- ddns-hostname = config-option host-name
- }
- }
|