diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-12-08 18:23:26 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-12-08 18:23:26 +0000 |
commit | fc67d16d19f0f28be21b06c576f1191df5f7d4df (patch) | |
tree | 44446ccd391ea45385a083b8799456392bcbd93b /packages/tinydns/tinydns.inc | |
parent | 1fb2b25af3d93d3e7a009063384f2cc274b55543 (diff) | |
download | pfsense-packages-fc67d16d19f0f28be21b06c576f1191df5f7d4df.tar.gz pfsense-packages-fc67d16d19f0f28be21b06c576f1191df5f7d4df.tar.bz2 pfsense-packages-fc67d16d19f0f28be21b06c576f1191df5f7d4df.zip |
Increase inputbox size to 45
Diffstat (limited to 'packages/tinydns/tinydns.inc')
-rw-r--r-- | packages/tinydns/tinydns.inc | 12 |
1 files changed, 8 insertions, 4 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) |