aboutsummaryrefslogtreecommitdiffstats
path: root/config/tinydns/tinydns.inc
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 /config/tinydns/tinydns.inc
parentc5a587d8699f0adcecd6609e0076650029356557 (diff)
downloadpfsense-packages-10072eb1d9fdeda54c0eb25f0a5d05aa5a97fe81.tar.gz
pfsense-packages-10072eb1d9fdeda54c0eb25f0a5d05aa5a97fe81.tar.bz2
pfsense-packages-10072eb1d9fdeda54c0eb25f0a5d05aa5a97fe81.zip
Add ipv6 support
Diffstat (limited to 'config/tinydns/tinydns.inc')
-rw-r--r--config/tinydns/tinydns.inc10
1 files changed, 10 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}";