aboutsummaryrefslogtreecommitdiffstats
path: root/config/bind
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2013-10-28 22:41:18 -0200
committerMarcello Coutinho <marcellocoutinho@gmail.com>2013-10-28 22:41:18 -0200
commit03ccade9e371e64b4911e1f8dd9a9e0234d8f0cd (patch)
tree24bb4b57b5feabe2c2d9efab87d071c9be22d02d /config/bind
parent2b25e92d7f905d7635e52468625a5c51bb744d76 (diff)
downloadpfsense-packages-03ccade9e371e64b4911e1f8dd9a9e0234d8f0cd.tar.gz
pfsense-packages-03ccade9e371e64b4911e1f8dd9a9e0234d8f0cd.tar.bz2
pfsense-packages-03ccade9e371e64b4911e1f8dd9a9e0234d8f0cd.zip
bind - fix reverse zones after including $ORIGIN
Diffstat (limited to 'config/bind')
-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";