禁用IPV6方法:

vi /etc/modprobe.d/dist.conf    结尾添加

alias net-pf-10 off

alias ipv6 off

并禁用ip6tables

chkconfig ip6tables off

新方法:(推荐)

/etc/sysconfig/named加入红色部分,让bind仅支持ipv4

ROOTDIR=/var/named/chroot

OPTIONS="-4"