Skip to content

Instantly share code, notes, and snippets.

@toke
Forked from helushune/config.boot
Created June 27, 2018 19:55
Show Gist options
  • Save toke/d80202de4d9ec830b738c10e3a2e5dac to your computer and use it in GitHub Desktop.
Save toke/d80202de4d9ec830b738c10e3a2e5dac 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