aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-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>