aboutsummaryrefslogtreecommitdiffstats
path: root/config/tinydns/tinydns.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/tinydns/tinydns.inc')
-rw-r--r--config/tinydns/tinydns.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/config/tinydns/tinydns.inc b/config/tinydns/tinydns.inc
index 516af21e..6072f33d 100644
--- a/config/tinydns/tinydns.inc
+++ b/config/tinydns/tinydns.inc
@@ -631,12 +631,14 @@ function tinydns_get_rowline_data($recordip, $recordtype, $ttl, $hostname, $rdns
break;
case "A":
/* "=" creates both "A" and "PTR" records to allow both forward and reverse DNS */
- // =fqdn:ip:ttl:timestamp:lo
- if($rdns)
+ if($rdns) {
+ // =fqdn:ip:ttl:timestamp:lo
$record_data = "={$hostname}:{$recordip}{$ttl_string}";
- else
+ } else {
/* "+" creates "A" records only to allow forward DNS */
- $record_data = "+{$hostname}:{$recordip}{$ttl_string}";
+ // +fqdn:ip:ttl:timestamp:lo
+ $record_data = "+{$hostname}:{$recordip}{$ttl_string}";
+ }
break;
case "CNAME":
// Cfqdn:p:ttl:timestamp:lo