~mdw
/
zoneconf
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
zoneconf.in: Support the `also-notify' variable.
[zoneconf]
/
zoneconf.in
diff --git
a/zoneconf.in
b/zoneconf.in
index
13c269d
..
43892db
100755
(executable)
--- a/
zoneconf.in
+++ b/
zoneconf.in
@@
-1017,6
+1017,7
@@
define-configuration-space zone ZONECFG {
"-Sfail" \
"-Wfail" \
"%z" "%f"]
"-Sfail" \
"-Wfail" \
"%z" "%f"]
+ define-list also-notify nil
define setvar {name value} {
dict set ZONECFG(var) $name $value
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)\";"
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
switch -exact -- $zone(type) {
dynamic {
write-ddns-update-policy "\t" $chan $config