Created
May 23, 2010 10:44
-
-
Save jasp/410834 to your computer and use it in GitHub Desktop.
Sample dhcpd config for autoupdate dns with static addr machines.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ddns-update-style interim; | |
# If you have fixed-address entries you want to use dynamic dns | |
update-static-leases on; | |
key rndc-key { | |
algorithm hmac-md5; | |
secret YourSecretKeyHere; | |
} | |
zone 1.168.192.in-addr.arpa { | |
primary localhost; | |
key rndc-key; | |
} | |
zone yourdomain.com { | |
primary localhost; | |
key rndc-key; | |
} | |
option domain-name "yourdomain.com"; | |
option subnet-mask 255.255.255.0; | |
default-lease-time 600; | |
max-lease-time 7200; | |
log-facility local7; | |
subnet 192.168.1.0 netmask 255.255.255.0 { | |
range 192.168.1.100 192.168.1.200; | |
option domain-name-servers 192.168.1.1; | |
option broadcast-address 192.168.1.255; | |
option routers 192.168.1.1; | |
#ddns-hostname = concat(binary-to-ascii(10, 8, "-", leased-address), ".locals"); | |
ddns-domainname = "yourdomain.com"; | |
} | |
group { | |
ddns-domainname = "yourdomain.com"; | |
use-host-decl-names on; | |
host webserver { | |
hardware ethernet MAC-addr; | |
fixed-address 192.168.1.2; | |
ddns-hostname = "webserver"; | |
} | |
host tvcomp { | |
hardware ethernet MAC-addr; | |
fixed-address 192.168.1.3; | |
ddns-hostname = "tvcomp"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment