diff options
author | Scott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com> | 2009-05-27 14:15:26 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com> | 2009-05-27 14:15:26 -0400 |
commit | 2d621831153fbf24687bf028f5a4f01f292e08be (patch) | |
tree | 8ebadb32b80b5434ada723de2291dae24be1270c /config/tinydns | |
parent | bc720937e0fab7c069818a16e76e3299d818ec39 (diff) | |
download | pfsense-packages-2d621831153fbf24687bf028f5a4f01f292e08be.tar.gz pfsense-packages-2d621831153fbf24687bf028f5a4f01f292e08be.tar.bz2 pfsense-packages-2d621831153fbf24687bf028f5a4f01f292e08be.zip |
Correct dist reecords (add missing :)
Diffstat (limited to 'config/tinydns')
-rw-r--r-- | config/tinydns/tinydns.inc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/config/tinydns/tinydns.inc b/config/tinydns/tinydns.inc index b3bb5d4a..f3a17b43 100644 --- a/config/tinydns/tinydns.inc +++ b/config/tinydns/tinydns.inc @@ -611,28 +611,33 @@ function tinydns_get_rowline_data($recordip, $recordtype, $ttl, $hostname, $rdns switch ($recordtype) { /* Note that some of these are simplistic versions of TinyDNS record handling. Uber-users can always do "raw" entries... */ - case "SOA": + case "SOA": $record_data = ".{$hostname}::{$recordip}{$ttl_string}"; break; case "NS": + // &serious.panic.mil:1.8.248.6:a $record_data = "&{$hostname}:{$recordip}{$ttl_string}"; break; case "MX": - $record_data = "@{$hostname}:{$recordip}:{$dist}{$ttl_string}"; + // @fqdn:ip:x:dist:ttl:timestamp:lo + $record_data = "@{$hostname}:{$recordip}::{$dist}{$ttl_string}"; break; case "PTR": /* "^" creates "PTR" record only to allow reverse DNS */ + // =fqdn:ip:ttl:timestamp:lo $record_data = "^{$hostname}:{$recordip}{$ttl_string}"; break; case "A": /* "=" creates both "A" and "PTR" records to allow both forward and reverse DNS */ + // =fqdn:ip:ttl:timestamp:lo if($rdns) $record_data = "={$hostname}:{$recordip}{$ttl_string}"; else - /* "+" creates "A" records only to allow forward DNS */ + /* "+" creates "A" records only to allow forward DNS */ $record_data = "+{$hostname}:{$recordip}{$ttl_string}"; break; case "CNAME": + // Cfqdn:p:ttl:timestamp:lo $record_data = "C{$hostname}:{$recordip}{$ttl_string}"; break; case "TXT": |