aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2011-02-06 19:15:19 -0500
committerScott Ullrich <sullrich@pfsense.org>2011-02-06 19:15:19 -0500
commit10072eb1d9fdeda54c0eb25f0a5d05aa5a97fe81 (patch)
tree6a483a220d50c97b0d952495500bb9c8ed708839
parentc5a587d8699f0adcecd6609e0076650029356557 (diff)
downloadpfsense-packages-10072eb1d9fdeda54c0eb25f0a5d05aa5a97fe81.tar.gz
pfsense-packages-10072eb1d9fdeda54c0eb25f0a5d05aa5a97fe81.tar.bz2
pfsense-packages-10072eb1d9fdeda54c0eb25f0a5d05aa5a97fe81.zip
Add ipv6 support
-rw-r--r--config/tinydns/tinydns.inc10
-rw-r--r--config/tinydns/tinydns_domains.xml1
2 files changed, 11 insertions, 0 deletions
diff --git a/config/tinydns/tinydns.inc b/config/tinydns/tinydns.inc
index 190a22cb..fa5f558b 100644
--- a/config/tinydns/tinydns.inc
+++ b/config/tinydns/tinydns.inc
@@ -752,6 +752,16 @@ function tinydns_get_rowline_data($recordip, $recordtype, $ttl, $hostname, $rdns
$record_data = "+{$hostname}:{$recordip}{$ttl_string}";
}
break;
+ case "AAAA":
+ if($rdns) {
+ // =fqdn:ip:ttl:timestamp:lo
+ $record_data = "^{$hostname}:{$recordip}{$ttl_string}";
+ } else {
+ /* ":" creates "AAAA" records only to allow forward DNS */
+ // :fqdn:ip:ttl:timestamp:lo
+ $record_data = ":{$hostname}:{$recordip}{$ttl_string}";
+ }
+ break;
case "CNAME":
// Cfqdn:p:ttl:timestamp:lo
$record_data = "C{$hostname}:{$recordip}{$ttl_string}";
diff --git a/config/tinydns/tinydns_domains.xml b/config/tinydns/tinydns_domains.xml
index bf4de8fa..6d068d4c 100644
--- a/config/tinydns/tinydns_domains.xml
+++ b/config/tinydns/tinydns_domains.xml
@@ -171,6 +171,7 @@
<options>
<option><name></name><value></value></option>
<option><name>A</name><value>A</value></option>
+ <option><name>AAAA</name><value>AAAA</value></option>
<option><name>MX</name><value>MX</value></option>
<option><name>NS</name><value>NS</value></option>
<option><name>SOA</name><value>SOA</value></option>