X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=1a30795611640f961f36ac23468d6deed6095a29;hb=98bfe64bf27eea1fbf919cbc9f03f8c5060ad6d7;hp=49b83ca8b69ff56e942a98daf5939b832f0d54ad;hpb=090c1bf5d3ed4ab16c1b9d57f984402812f2a3f5;p=bind9-cn.git diff --git a/debian/postinst b/debian/postinst index 49b83ca..1a30795 100755 --- a/debian/postinst +++ b/debian/postinst @@ -31,7 +31,7 @@ esac . /usr/share/carnet-tools/functions.sh echo "CN: Making sample configurations in /usr/share/doc/bind9-cn/examples" -echo "CN: Make sure you read them and apply *before* running Bind9 service!" +echo "CN: Make sure you change them appropriately *before* running Bind9 service!" #variables cp_get_ifaddr @@ -73,7 +73,6 @@ acl "trusted" { options { directory "/etc/bind"; - query-source address * port 53; auth-nxdomain no; allow-transfer { xfer; }; allow-recursion { trusted; }; @@ -176,6 +175,16 @@ EOF rndc reload || echo "CN: Reload didn't work, please check manually" fi +if [ -e /etc/bind/named.conf.options ] && \ + fgrep -q 'query-source address * port 53' \ + /etc/bind/named.conf.options; then + fgrep -v 'query-source address * port 53' \ + /etc/bind/named.conf.options > /etc/bind/named.conf.options.$$ + cp_mv /etc/bind/named.conf.options.$$ /etc/bind/named.conf.options + echo "CN: Removing obsolete query-source directive" + rndc reload || echo "CN: Reload didn't work, please check manually" +fi + # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts.