From 0934d67de454dfb2edef47ec156cc5df18304b3c Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 8 Feb 2007 22:09:30 +0000 Subject: * Patched tinydns.inc to restart service. * Support for independent NS records has been added. Submitted-by: GAndreone@imapro.com --- packages/tinydns/tinydns.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packages/tinydns/tinydns.inc') 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; -- cgit v1.2.3