add li bind config
authorIan Kelling <ian@iankelling.org>
Tue, 25 Apr 2017 07:54:22 +0000 (00:54 -0700)
committerIan Kelling <ian@iankelling.org>
Tue, 25 Apr 2017 07:54:22 +0000 (00:54 -0700)
machine_specific/li/filesystem/etc/bind/bind-writable/db.iank.pw [new file with mode: 0644]
machine_specific/li/filesystem/etc/bind/named.conf.local [new file with mode: 0644]

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 (file)
index 0000000..b55b642
--- /dev/null
@@ -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 (file)
index 0000000..de7b94e
--- /dev/null
@@ -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";