bind9编译安装
2017-02-15bind9.11升级。
下载
wget ftp://ftp.isc.org/isc/bind9/9.9.9-P6/bind-9.9.9-P6.tar.gz
wget ftp://ftp.isc.org/isc/bind9/9.11.0-P3/bind-9.11.0-P3.tar.gz
dig命令需要安装bind-utils
编译
./configure \
--prefix=/usr/local/bind9 \
--enable-threads \
--enable-static \
--enable-ipv6=no
make
make install
mkdir /usr/local/bind9/etc
mkdir /usr/local/bind9/var/named
mkdir /usr/local/bind9/var/run
mkdir /usr/local/bind9/var/logs
# touch /usr/local/bind9/var/run/named.pid
# touch /usr/local/bind9/var/named_dump.db
# touch /usr/local/bind9/var/run/named.stats
/usr/local/bind9/sbin/rndc-confgen > /usr/local/bind9/etc/rndc.conf
# useradd named
# chown -R named:named /usr/local/bind9/
# chmod 600 /usr/local/bind9/etc/*
# chmod 600 /usr/local/bind9/var/*
# chmod 600 /usr/local/bind9/logs/*
./start.sh启动:
/usr/local/bind9/sbin/named -4 -c /usr/local/bind9/etc/named.conf -n X -u
./sync.sh
/usr/local/bind9/sbin/rndc status
rndc: connect failed: 127.0.0.1#953: connection refused
分类:Linux | 标签: bind |