linux bind升级,bind9.2升级bind9.9

bind9.2升级bind9.9

2013-05-28

The BIND package provides a DNS server and client utilities. If you are only interested in the utilities, refer to the BIND Utilities-9.9.2-P2.

1.Download URL:

ftp://ftp.isc.org/isc/bind9/9.9.2-P2/bind-9.9.2-P2.tar.gz

2.Optional patch (if net-tools is not installed,net-tools Installed Programs: arp, dnsdomainname, domainname, hostname, ifconfig, ipmaddr, iptunnel, mii-tool, nameif, netstat, nisdomainname, plipconfig, rarp, route, slattach, and ypdomainname):

http://www.linuxfromscratch.org/patches/blfs/svn/bind-9.9.2-P2-use_iproute2-1.patch

3.patch,configure,make,make install

patch -Np1 -i ../bind-9.9.2-P2-use_iproute2-1.patch

./configure --prefix=/usr/local/bind9 --mandir=/usr/share/man --enable-threads --with-libtool --disable-openssl-version-check

make;make install

#1:

./gen: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory

libiconv.so.2 => not found

/etc/ld.so.conf

add

/usr/local/lib

#2

--prefix=/usr/local/bind9not set will /usr/local/bin/dig /usr/local/sbin/named

--sysconfdir=/etc: This parameter forces BIND to look for configuration files in /etc instead of /usr/etc.

--enable-threads: This parameter enables multi-threading capability.

--with-libtool: This parameter forces the building of dynamic libraries and links the installed binaries to these libraries.

4.Config files:

/usr/local/bind9/etc/named.conf

/usr/local/bind9/etc/rndc.conf

/etc/resolv.conf

and

127.0.0

root.hints

5.Installed Programs:

dig, dnssec-keygen, dnssec-signzone, host, isc-config.sh, lwresd, named, named-checkconf, named-checkzone, nslookup, nsupdate, rndc, and rndc-confgen

6.named:named

groupadd -g 20 named &&

useradd -c "BIND Owner" -g named -s /bin/false -u 20 named &&

install -d -m770 -o named -g named /usr/local/bind9/var/named

7.start.sh

/usr/local/bind9/sbin/named -4 -c /usr/local/bind9/etc/named.conf -n 4 -u named

8.stop.sh

pgrep named|xargs kill -9

9.reload.sh

/usr/local/bind9/sbin/rndc reload

10.referance

http://www.linuxfromscratch.org/blfs/view/svn/server/bind.html

分类:网络 | 标签: bind |

相关日志

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值