diff options
Diffstat (limited to 'config/tinydns/tinydns.inc')
-rw-r--r-- | config/tinydns/tinydns.inc | 10 |
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}"; |