aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/tinydns/tinydns.inc2
1 files changed, 2 insertions, 0 deletions
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":