From 9a61c5c95963ba0d7fbd0282ee319d6f003f1146 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Wed, 2 May 2012 19:23:03 +0100 Subject: [PATCH] zoneconf.in: Support the `also-notify' variable. This is currently a hopeless mess. --- zoneconf.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zoneconf.in b/zoneconf.in index 13c269d..43892db 100755 --- a/zoneconf.in +++ b/zoneconf.in @@ -1017,6 +1017,7 @@ define-configuration-space zone ZONECFG { "-Sfail" \ "-Wfail" \ "%z" "%f"] + define-list also-notify nil define setvar {name value} { dict set ZONECFG(var) $name $value @@ -1281,6 +1282,9 @@ proc write-zone-stanza {view chan config} { master { puts $chan "\ttype master;" puts $chan "\tfile \"$zone(server-file-name)\";" + if {![string equal $zone(also-notify) "nil"]} { + puts $chan "\talso-notify { [join $zone(also-notify) {; }]; };" + } switch -exact -- $zone(type) { dynamic { write-ddns-update-policy "\t" $chan $config -- 2.11.0