diff options
author | Marcello Coutinho <marcellocoutinho@gmail.com> | 2013-10-28 22:41:18 -0200 |
---|---|---|
committer | Marcello Coutinho <marcellocoutinho@gmail.com> | 2013-10-28 22:41:18 -0200 |
commit | 03ccade9e371e64b4911e1f8dd9a9e0234d8f0cd (patch) | |
tree | 24bb4b57b5feabe2c2d9efab87d071c9be22d02d | |
parent | 2b25e92d7f905d7635e52468625a5c51bb744d76 (diff) | |
download | pfsense-packages-03ccade9e371e64b4911e1f8dd9a9e0234d8f0cd.tar.gz pfsense-packages-03ccade9e371e64b4911e1f8dd9a9e0234d8f0cd.tar.bz2 pfsense-packages-03ccade9e371e64b4911e1f8dd9a9e0234d8f0cd.zip |
bind - fix reverse zones after including $ORIGIN
-rw-r--r-- | config/bind/bind.inc | 5 |
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"; |