From: Mark Wooding Date: Sat, 31 Mar 2012 20:04:36 +0000 (+0100) Subject: zoneconf.in: Allow control over query access. X-Git-Url: https://git.distorted.org.uk/~mdw/zoneconf/commitdiff_plain/6e1af3c0c706f13fa94d4d0daf5dfcae03c95755 zoneconf.in: Allow control over query access. Not generally useful except for special effects. I have a special effect. --- diff --git a/zoneconf.in b/zoneconf.in index edf1184..13c269d 100755 --- a/zoneconf.in +++ b/zoneconf.in @@ -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 "};"; }