From 399dc2814a383f5ee9f24181c6f45a9e40d5b090 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Tue, 25 Apr 2017 00:54:22 -0700 Subject: [PATCH] add li bind config --- .../etc/bind/bind-writable/db.iank.pw | 13 ++++++++++++ .../li/filesystem/etc/bind/named.conf.local | 21 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 machine_specific/li/filesystem/etc/bind/bind-writable/db.iank.pw create mode 100644 machine_specific/li/filesystem/etc/bind/named.conf.local 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"; -- 2.30.2