aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tinydns/tinydns.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/tinydns/tinydns.inc')
-rw-r--r--packages/tinydns/tinydns.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/tinydns/tinydns.inc b/packages/tinydns/tinydns.inc
index 97b30fd5..03e99e57 100644
--- a/packages/tinydns/tinydns.inc
+++ b/packages/tinydns/tinydns.inc
@@ -141,6 +141,7 @@ function tinydns_custom_php_changeip_command() {
exec("/bin/mkdir /service");
exec("/bin/ln -s /etc/tinydns /service/");
exec("echo $ip > /service/tinydns/env/IP");
+ exec("killall -9 tinydns");
conf_mount_ro();
filter_configure();
}
@@ -323,6 +324,9 @@ function tinydns_get_rowline_data($recordip, $recordtype, $ttl, $hostname,$rdns)
case "SOA":
$record_data = ".{$hostname}::{$recordip}{$ttl_string}";
break;
+ case "NS":
+ $record_data = "&{$hostname}:{$recordip}{$ttl_string}";
+ break;
case "MX":
$record_data = "@{$hostname}:{$recordip}::{$ttl_string}";
break;