aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tinydns
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-12-08 18:23:26 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-12-08 18:23:26 +0000
commitfc67d16d19f0f28be21b06c576f1191df5f7d4df (patch)
tree44446ccd391ea45385a083b8799456392bcbd93b /packages/tinydns
parent1fb2b25af3d93d3e7a009063384f2cc274b55543 (diff)
downloadpfsense-packages-fc67d16d19f0f28be21b06c576f1191df5f7d4df.tar.gz
pfsense-packages-fc67d16d19f0f28be21b06c576f1191df5f7d4df.tar.bz2
pfsense-packages-fc67d16d19f0f28be21b06c576f1191df5f7d4df.zip
Increase inputbox size to 45
Diffstat (limited to 'packages/tinydns')
-rw-r--r--packages/tinydns/tinydns.inc12
-rw-r--r--packages/tinydns/tinydns_domains.xml6
2 files changed, 13 insertions, 5 deletions
diff --git a/packages/tinydns/tinydns.inc b/packages/tinydns/tinydns.inc
index 9622d8e9..67e49abb 100644
--- a/packages/tinydns/tinydns.inc
+++ b/packages/tinydns/tinydns.inc
@@ -191,6 +191,10 @@ function tinydns_create_zone_file() {
$hostname = $domain['hostname'];
$ipaddress = $domain['ipaddress'];
$ttl = $domain['ttl'];
+ if($ttl)
+ $ttl_string = "::{$ttl}";
+ else
+ $ttl_string = "";
/* check record status, if it is down request
* backup server if defined.
*/
@@ -202,16 +206,16 @@ function tinydns_create_zone_file() {
$record_data = ".{$hostname}::{$ipaddress}";
break;
case "MX":
- $record_data = "@{$hostname}:{$ipaddress}::{$ttl}";
+ $record_data = "@{$hostname}:{$ipaddress}{$ttl_string}";
break;
case "A":
- $record_data = "+{$hostname}:{$ipaddress}::{$ttl}";
+ $record_data = "+{$hostname}:{$ipaddress}{$ttl_string}";
break;
case "PTR":
- $record_data = "={$hostname}:{$ipaddress}::{$ttl}";
+ $record_data = "={$hostname}:{$ipaddress}{$ttl_string}";
break;
case "CNAME":
- $record_data = "C{$hostname}:{$ipaddress}::{$ttl}";
+ $record_data = "C{$hostname}:{$ipaddress}{$ttl_string}";
break;
}
if($record_data)
diff --git a/packages/tinydns/tinydns_domains.xml b/packages/tinydns/tinydns_domains.xml
index 7f632eb9..94a124c5 100644
--- a/packages/tinydns/tinydns_domains.xml
+++ b/packages/tinydns/tinydns_domains.xml
@@ -31,6 +31,7 @@
<description>Enter the domain name that you would like to serve dns records for.</description>
<required/>
<type>input</type>
+ <size>45</size>
</field>
<field>
<fielddescr>Record type</fielddescr>
@@ -54,16 +55,19 @@
<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>
<required/>
<type>input</type>
+ <size>45</size>
</field>
<field>
<fieldname>ttl</fieldname>
<fielddescr>DNS record time to live</fielddescr>
<type>input</type>
+ <size>45</size>
</field>
<field>
<fieldname>threshhold</fieldname>
<fielddescr>Time in minutes before DNS switches to backup host</fielddescr>
<type>input</type>
+ <size>45</size>
</field>
<field>
<type>rowhelper</type>
@@ -73,7 +77,7 @@
<fieldname>failoverip</fieldname>
<description>Failover IP when host is not responding to ICMP/PING traffic</description>
<type>input</type>
- <size>25</size>
+ <size>45</size>
</rowhelperfield>
</rowhelper>
</field>