run the shell
sed -i 's/recursion yes/recursion no/g' /etc/named.conf
cat>> /var/named/chroot/etc/named.conf<<EOF
options {
recursion no;
};
EOF
/etc/init.d/named restart
run the shell
sed -i 's/recursion yes/recursion no/g' /etc/named.conf
cat>> /var/named/chroot/etc/named.conf<<EOF
options {
recursion no;
};
EOF
/etc/init.d/named restart