aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/bind/bind.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/bind/bind.inc b/config/bind/bind.inc
index 009befff..e680099f 100644
--- a/config/bind/bind.inc
+++ b/config/bind/bind.inc
@@ -398,7 +398,10 @@ EOD;
else
$zoneallowtransfer = str_replace(',','; ',$zone['allowtransfer']);
$zone_conf = "\$TTL {$zonetll}\n;\n";
- $zone_conf .= "\$ORIGIN {$zonename}.\n\n";
+ if($zonereverso == "on")
+ $zone_conf .= "\$ORIGIN {$zonename}.in-addr.arpa.\n\n";
+ else
+ $zone_conf .= "\$ORIGIN {$zonename}.\n\n";
$zone_conf .= ";\tDatabase file {$zonename}.DB for {$zonename} zone.\n";
$zone_conf .= ";\tDo not edit this file!!!\n";
$zone_conf .= ";\tZone version {$zoneserial}\n;\n";