X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=machine_specific%2Fli%2Ffilesystem%2Fetc%2Fbind%2Fnamed.conf.local;h=39df3fa2ee6c6bc6a8f36e6c57827250b362c03f;hb=28904b44d0dd6ce9d43ab720b5efe9af2ce336de;hp=de7b94eb58239a8350c18a26cde19f9f4e957c50;hpb=399dc2814a383f5ee9f24181c6f45a9e40d5b090;p=distro-setup diff --git a/machine_specific/li/filesystem/etc/bind/named.conf.local b/machine_specific/li/filesystem/etc/bind/named.conf.local index de7b94e..39df3fa 100644 --- a/machine_specific/li/filesystem/etc/bind/named.conf.local +++ b/machine_specific/li/filesystem/etc/bind/named.conf.local @@ -7,15 +7,24 @@ // ian: ok. uncommented. 1918 zones are private ip ranges. include "/etc/bind/zones.rfc1918"; - - -zone "iank.pw" { +# based on random internet tutorials, then reading +# file:///usr/share/doc/bind9-doc/arm/Bv9ARM.ch06.html#dynamic_update_policies +zone "b8.nz" { type master; -file "/etc/bind/bind-writable/db.iank.pw"; +file "/var/lib/bind/db.b8.nz"; 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; + // allow updating almost anything in the zone or subdomains. + grant b8.nz. subdomain b8.nz.; }; }; -include "/etc/bind/key.iank.pw"; +include "/etc/bind/key.b8.nz"; + +zone "iankelling.org" { +type master; +file "/var/lib/bind/db.iankelling.org"; +}; + +zone "zroe.org" { +type master; +file "/var/lib/bind/db.zroe.org"; +};