X-Git-Url: https://git.distorted.org.uk/~mdw/zoneconf/blobdiff_plain/6e1af3c0c706f13fa94d4d0daf5dfcae03c95755..9a61c5c95963ba0d7fbd0282ee319d6f003f1146:/zoneconf.in 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