X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=4b0b4c8b51ed2ae771552051185b0c495c442081;hb=cfa22dd36fb4be0f50a2587c3558cc44288d28f2;hp=567dedf913b85f5c9a41b079c3dde4331d2498f5;hpb=17c32ff7c315038d9b0118f6c314c397196a9050;p=bind9-cn.git diff --git a/debian/postinst b/debian/postinst index 567dedf..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; }; @@ -150,17 +149,40 @@ nameserver 161.53.2.70 EOF # check if named.conf has lame server logging -if [ -e /etc/bind/named.conf.options ]; then - lameconf=$(awk '/^logging/,/^}/ { if ($0 ~ /category lame-servers/) { print "yes"; exit } }' /etc/bind/named.conf) - if [ "x$lameconf" != "xyes" ]; then - cp /etc/bind/named.conf.options /etc/bind/named.conf.options.$$ - cp-update bind9-cn /etc/bind/named.conf.options.$$ < /etc/bind/named.conf.options.$$ cp_mv /etc/bind/named.conf.options.$$ /etc/bind/named.conf.options - fi + 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