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 | |
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')
-rw-r--r-- | packages/tinydns/tinydns.inc | 4 | ||||
-rw-r--r-- | packages/tinydns/tinydns_domains.xml | 21 |
2 files changed, 15 insertions, 10 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; diff --git a/packages/tinydns/tinydns_domains.xml b/packages/tinydns/tinydns_domains.xml index 48466b8d..18b6e82e 100644 --- a/packages/tinydns/tinydns_domains.xml +++ b/packages/tinydns/tinydns_domains.xml @@ -25,7 +25,7 @@ </tabs> <adddeleteeditpagefields> <columnitem> - <fielddescr>Hostname</fielddescr> + <fielddescr>Fully Qualified Domain Name (Hostname)</fielddescr> <fieldname>hostname</fieldname> </columnitem> <columnitem> @@ -44,8 +44,8 @@ <fields> <field> <fieldname>hostname</fieldname> - <fielddescr>FQDN or Hostname www.exampledomain.com</fielddescr> - <description>Enter the domain name that you would like to serve dns records for.</description> + <fielddescr>Hostname or FQDN www.exampledomain.com</fielddescr> + <description>The DNS server will supply Records for the Fully Qualified Domain Name that is entered</description> <required/> <type>input</type> <size>35</size> @@ -53,32 +53,34 @@ <field> <fielddescr>Record type</fielddescr> <fieldname>recordtype</fieldname> - <description>DNS Record type. MX, A, etc</description> + <description>DNS Record types. A, PTR, MX, NS, SOA, TXT, CNAME</description> <required/> <type>select</type> <size>1</size> <options> <option><value></value><name></name></option> - <option><value>MX</value><name>MX</name></option> <option><value>A</value><name>A</name></option> + <option><value>MX</value><name>MX</name></option> + <option><value>NS</value><name>NS</name></option> <option><value>SOA</value><name>SOA</name></option> <option><value>PTR</value><name>PTR</name></option> <option><value>CNAME</value><name>CNAME</name></option> + <option><value>TXT</value><name>TXT</name></option> </options> </field> <field> <fielddescr>Automatic PTR entry</fielddescr> <fieldname>rdns</fieldname> - <description>Create a reverse DNS (PTR) entry for this A record?</description> + <description>Create a reverse DNS (PTR) entry for this A Record?</description> <type>checkbox</type> </field> <field> <fieldname>ipaddress</fieldname> - <fielddescr>IP Address or hostname that record points to</fielddescr> - <description>Enter the IP Address that this record will point to (primary). The only exception is for NS type records where we expect a complete hostname to point to a A record.</description> + <fielddescr> FQDN or IP Address</fielddescr> + <description>IP Address for A Records. FQDN or Hostname for SOA, PTR, CNAME Records. For NS Records an IP:FQDN</description> <required/> <type>input</type> - <size>35</size> + <size>40</size> </field> <field> <fieldname>ttl</fieldname> @@ -143,4 +145,3 @@ tinydns_setup_ping_items(); </custom_php_resync_config_command> </packagegui> - |