From ce0e3ea336e665c9b95936dbbd3f0d6b59312bc0 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 27 May 2009 14:20:04 -0400 Subject: Default to MX dist of 10 instead of 0. Most folks start with 10 or 5. --- config/tinydns/tinydns.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config') diff --git a/config/tinydns/tinydns.inc b/config/tinydns/tinydns.inc index f3a17b43..ea4c75a2 100644 --- a/config/tinydns/tinydns.inc +++ b/config/tinydns/tinydns.inc @@ -620,6 +620,8 @@ function tinydns_get_rowline_data($recordip, $recordtype, $ttl, $hostname, $rdns break; case "MX": // @fqdn:ip:x:dist:ttl:timestamp:lo + if(!$dist) + $dist = "10"; // default to 10 if no preference has been defined. 0 is ugly. $record_data = "@{$hostname}:{$recordip}::{$dist}{$ttl_string}"; break; case "PTR": -- cgit v1.2.3