chiark / gitweb /
zoneconf.in: Allow control over query access.
[zoneconf] / zoneconf.in
index edf11841bcb4b0d9828e0ca1b950182409613b7b..13c269d008ca5e0164a798e4598400b16b5ab9e8 100755 (executable)
@@ -992,6 +992,7 @@ define-configuration-space zone ZONECFG {
   define-simple dir-mode 2775
   define-simple zone-file "%v/%z.zone"
   define-simple soa-format increment
+  define-simple allow-query nil
   define-list views *
   define-list sign-views {}
   define-list signzone-command \
@@ -1300,6 +1301,9 @@ proc write-zone-stanza {view chan config} {
       }
     }
   }
+  if {![string equal $zone(allow-query) nil]} {
+    puts $chan "\tallow-query {$zone(allow-query)};"
+  }
   puts $chan "};";
 }