编译安装bind
$tar zxvf bind-9.9.3-P1.tar.gz $yum install -y make gcc gcc-c++ open-ssl openssl-devel $cd bind-9.9.3-P1 $sudo ./configure -prefix=/usr/local/named --mandir=/usr/local/share/man -enable-threads --disable-openssl-version-check $sudo make && sudo make install
sudo /usr/local/named/sbin/rndc-confgen > /usr/local/named/etc/rndc.conf
cd /usr/local/named/etc/
tail -n10 rndc.conf | head -n9 | sed -e s/\#//g > named.conf