We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1ef53d commit 0fccd69Copy full SHA for 0fccd69
bin/v-change-dns-domain-tpl
@@ -137,6 +137,11 @@ fi
137
update_object_value 'dns' 'DOMAIN' "$domain" '$TPL' "$template"
138
update_object_value 'dns' 'DOMAIN' "$domain" '$RECORDS' "$records"
139
140
+# Rebuild DNS zone and update counters to ensure that it has updated correctly
141
+$BIN/v-rebuild-dns-domain $user $domain no
142
+$BIN/v-update-user-stats $user
143
+$BIN/v-update-user-counters $user
144
+
145
# Restarting named
146
$BIN/v-restart-dns $restart
147
check_result $? "DNS restart failed" >/dev/null
0 commit comments