diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-02-08 22:09:30 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-02-08 22:09:30 +0000 |
commit | 0934d67de454dfb2edef47ec156cc5df18304b3c (patch) | |
tree | 5bb6b455c07717c5235042a253669064427f6271 /packages/tinydns/tinydns.inc | |
parent | 2faccc851cc94b798869db22a2251ad12830b514 (diff) | |
download | pfsense-packages-0934d67de454dfb2edef47ec156cc5df18304b3c.tar.gz pfsense-packages-0934d67de454dfb2edef47ec156cc5df18304b3c.tar.bz2 pfsense-packages-0934d67de454dfb2edef47ec156cc5df18304b3c.zip |
* Patched tinydns.inc to restart service.
* Support for independent NS records has been added.
Submitted-by: GAndreone@imapro.com
Diffstat (limited to 'packages/tinydns/tinydns.inc')
-rw-r--r-- | packages/tinydns/tinydns.inc | 4 |
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; |