Skip to content

Instantly share code, notes, and snippets.

@helushune
Created August 16, 2016 02:16
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save helushune/1abc37b0e3c90f01300e7ce4c40fe6ab to your computer and use it in GitHub Desktop.
Save helushune/1abc37b0e3c90f01300e7ce4c40fe6ab to your computer and use it in GitHub Desktop.
service {
dhcp-server {
disabled false
dynamic-dns-update {
enable true
}
global-parameters "key rndc-key { algorithm HMAC-MD5; secret paste_your_ddns_secret_here; };"
global-parameters "zone home.local. { primary 10.1.2.2; key rndc-key; }"
global-parameters "ddns-domainname "home.local.";"
global-parameters "ddns-rev-domainname "in-addr.arpa.";"
global-parameters "zone in-addr.arpa. { primary 10.1.2.2; key rndc-key; }"
global-parameters "zone 1.10.in-addr.arpa. { primary 10.1.2.2; key rndc-key; }"
hostfile-update disable
key "rndc-key" {
algorithm hmac-md5;
secret "paste_your_ddns_secret_here";
};
zone "home.local" {
type master;
file "/etc/bind/zones/db.home.local";
allow-update { key rndc-key; };
allow-transfer { 10.1.10.4; };
zone-statistics yes;
};
zone "1.10.in-addr.arpa" {
type master;
file "/etc/bind/zones/db.1.10";
allow-update { key rndc-key; };
allow-transfer { 10.1.10.4; };
zone-statistics yes;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment