From: Ian Kelling Date: Tue, 25 Apr 2017 07:54:22 +0000 (-0700) Subject: add li bind config X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=commitdiff_plain;h=399dc2814a383f5ee9f24181c6f45a9e40d5b090 add li bind config --- diff --git a/machine_specific/li/filesystem/etc/bind/bind-writable/db.iank.pw b/machine_specific/li/filesystem/etc/bind/bind-writable/db.iank.pw new file mode 100644 index 0000000..b55b642 --- /dev/null +++ b/machine_specific/li/filesystem/etc/bind/bind-writable/db.iank.pw @@ -0,0 +1,13 @@ +$ORIGIN . +$TTL 60 ; 1 minute +iank.pw IN SOA iank.pw. admin.iank.pw. ( + 25 ; serial + 604800 ; refresh (1 week) + 86400 ; retry (1 day) + 2419200 ; expire (4 weeks) + 60 ; minimum (1 minute) + ) + NS n1.iankelling.org. + NS n2.iankelling.org. +$TTL 86400 ; 1 day + A 67.170.73.44 diff --git a/machine_specific/li/filesystem/etc/bind/named.conf.local b/machine_specific/li/filesystem/etc/bind/named.conf.local new file mode 100644 index 0000000..de7b94e --- /dev/null +++ b/machine_specific/li/filesystem/etc/bind/named.conf.local @@ -0,0 +1,21 @@ +// +// Do any local configuration here +// + +// Consider adding the 1918 zones here, if they are not used in your +// organization +// ian: ok. uncommented. 1918 zones are private ip ranges. +include "/etc/bind/zones.rfc1918"; + + + +zone "iank.pw" { +type master; +file "/etc/bind/bind-writable/db.iank.pw"; + update-policy { + // allow host to update themselves with a key having their own name + grant iank.pw. name iank.pw. A TXT; + grant iank.pw. name *.iank.pw. A TXT; + }; +}; +include "/etc/bind/key.iank.pw";