1.2. 安装

安装

$ ./configure --prefix=/usr/local/bind
$ make depend
$ make
$ make install

创建链接

$ mkdir -p /usr/local/bind/var/run
$ mkdir -p /usr/local/bind/var/named
$ mkdir -p /usr/local/bind/etc
$ touch    /usr/local/bind/etc/named.conf
$ touch    /usr/local/bind/etc/rndc.conf

$ ln -sf    /usr/local/bind/etc/named.conf  /etc/named.conf
$ ln -sf    /usr/local/bind/etc/rndc.conf   /etc/rndc.conf
$ ln -sf    /usr/local/bind/var/named       /var/named
$ ln -sf    /usr/local/bind/sbin/rndc       /usr/sbin/rndc
$ ln -sf    /usr/local/bind/sbin/named      /usr/sbin/named