X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=machine_specific%2Fli%2Ffilesystem%2Fetc%2Fbind%2Fnamed.conf.local;h=5253a12e061a5e9b7790fd8643da240c17cb7c67;hb=fbb0315374736f92d950545796beaa79cbdc1f49;hp=8286002b6c9649e42df47173c817fbc3ce3cfe96;hpb=8c9f3c9c69a1f76d8ffba1343fc0ab308fb4661a;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 8286002..5253a12 100644 --- a/machine_specific/li/filesystem/etc/bind/named.conf.local +++ b/machine_specific/li/filesystem/etc/bind/named.conf.local @@ -7,15 +7,14 @@ // ian: ok. uncommented. 1918 zones are private ip ranges. include "/etc/bind/zones.rfc1918"; - - -zone "iank.life" { +# 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.life"; +file "/var/lib/bind/db.b8.nz"; update-policy { - // allow host to update themselves with a key having their own name - grant iank.life. name iank.life. A TXT; - grant iank.life. name *.iank.life. A TXT; + // allow updating almost anything in the zone or subdomains. + grant b8.nz. subdomain b8.nz.; }; }; -include "/etc/bind/key.iank.life"; +include "/etc/bind/key.b8.nz";