1、编译前环境准备

[root@centfils ~]# yum groupinstall "Development Tools" "Server Platform Development"

2、至isc.org bind官网下载bind源码,并展开

[root@centfils ~]# tar xf bind-9.9.9-P2.tar.gz
[root@centfils ~]# cd bind-9.9.9-P2


3、创建named用户

[root@centfils bind-9.9.9-P2]# group -r -g 53 named
[root@centfils bind-9.9.9-P2]# useradd -u 53 -g named named -r
#使用53端口作为named组和named用户的ID号


4、编译安装

[root@centfils bind-9.9.9-P2]# ./configure --prefix=/usr/local/bind9.9 --sysconfdir=/etc/named/ --disable-chroot --enable-threads
#指明安装位置,配置文件位置,关闭chroot,开启线程

[root@centfi