summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dns.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/dns.php b/dns.php
index a21b00f..39ae506 100644
--- a/dns.php
+++ b/dns.php
@@ -119,7 +119,7 @@ function writezone($domain, $zonetext, $password = null) {
echo "<p>Zone file will load, but check below for possible warnings:</p><pre>$zonecheck</pre>";
}
- // Reload the zone if we got this far
+ // Write out the real zone file
$zonewrite = sshrun("echo -en \"$zonetext\" > " . ZONEROOT . "$domain" . ZONESUFFIX . " && echo $? || echo $?");
// Remove any trailing newlines from the returned string
@@ -133,6 +133,7 @@ function writezone($domain, $zonetext, $password = null) {
die();
}
+ // Reload the zone if we got this far
sshrun("rndc reload $domain");
}