From: Dinko Korunic Date: Sun, 1 Mar 2009 22:03:37 +0000 (+0100) Subject: - maknut query-source kao direktiva viska X-Git-Tag: v9.7.3~6 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;ds=sidebyside;h=cfa22dd36fb4be0f50a2587c3558cc44288d28f2;hp=090c1bf5d3ed4ab16c1b9d57f984402812f2a3f5;p=bind9-cn.git - maknut query-source kao direktiva viska --- diff --git a/debian/changelog b/debian/changelog index 818e7fe..4fc640a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +bind9-cn (2:9.2.4-3) stable; urgency=low + + * maknut query-source kao direktiva viska + + -- Dinko Korunic Sun, 1 Mar 2009 22:51:26 +0100 + bind9-cn (2:9.2.4-2) stable; urgency=low * korekcija postinst, pretrazi lame-servers logging i u named.conf i u diff --git a/debian/postinst b/debian/postinst index 49b83ca..4b0b4c8 100755 --- a/debian/postinst +++ b/debian/postinst @@ -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.