aboutsummaryrefslogtreecommitdiffstats
path: root/config/tinydns/tinydns_domains.xml
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-03-15 19:20:46 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-03-15 19:20:46 -0400
commit1d1bcc341636aa93f353908f5ac6433611fe2b65 (patch)
tree7e1fe5609ac66291fcb8893b034d457acdcc436b /config/tinydns/tinydns_domains.xml
parent5fcb7d16e845cdc3a1d2e5ed36e85e630be819bc (diff)
downloadpfsense-packages-1d1bcc341636aa93f353908f5ac6433611fe2b65.tar.gz
pfsense-packages-1d1bcc341636aa93f353908f5ac6433611fe2b65.tar.bz2
pfsense-packages-1d1bcc341636aa93f353908f5ac6433611fe2b65.zip
Reload zone correctly on the primary dns server without needing to do an operation twice
Diffstat (limited to 'config/tinydns/tinydns_domains.xml')
-rw-r--r--config/tinydns/tinydns_domains.xml19
1 files changed, 3 insertions, 16 deletions
diff --git a/config/tinydns/tinydns_domains.xml b/config/tinydns/tinydns_domains.xml
index 33647bac..247227d8 100644
--- a/config/tinydns/tinydns_domains.xml
+++ b/config/tinydns/tinydns_domains.xml
@@ -232,28 +232,15 @@
}
</custom_php_validation_command>
<custom_add_php_command>
- $dnssync = true;
- log_error("Begin tinydns add");
+ </custom_add_php_command>
+ <custom_php_resync_config_command>
+ log_error("Begin tinydns resync");
tinydns_create_zone_file();
log_error("Zone file done.");
tinydns_setup_ping_items();
log_error("Ping items done.");
tinydns_sync_on_changes();
log_error("Sync items done.");
- </custom_add_php_command>
- <custom_php_resync_config_command>
- if(!$dnssync) {
- log_error("Begin tinydns resync");
- tinydns_create_zone_file();
- log_error("Zone file done.");
- tinydns_setup_ping_items();
- log_error("Ping items done.");
- tinydns_sync_on_changes();
- log_error("Sync items done.");
- } else {
- tinydns_create_zone_file();
- tinydns_setup_ping_items();
- }
</custom_php_resync_config_command>
<custom_php_command_before_form>
unset($_POST['temp']);