From fc67d16d19f0f28be21b06c576f1191df5f7d4df Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 8 Dec 2006 18:23:26 +0000 Subject: Increase inputbox size to 45 --- packages/tinydns/tinydns.inc | 12 ++++++++---- packages/tinydns/tinydns_domains.xml | 6 +++++- 2 files changed, 13 insertions(+), 5 deletions(-) (limited to 'packages/tinydns') 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 @@ Enter the domain name that you would like to serve dns records for. input + 45 Record type @@ -54,16 +55,19 @@ 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. input + 45 ttl DNS record time to live input + 45 threshhold Time in minutes before DNS switches to backup host input + 45 rowhelper @@ -73,7 +77,7 @@ failoverip Failover IP when host is not responding to ICMP/PING traffic input - 25 + 45 -- cgit v1.2.3