From 03ccade9e371e64b4911e1f8dd9a9e0234d8f0cd Mon Sep 17 00:00:00 2001 From: Marcello Coutinho Date: Mon, 28 Oct 2013 22:41:18 -0200 Subject: bind - fix reverse zones after including $ORIGIN --- config/bind/bind.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'config/bind') 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"; -- cgit v1.2.3