当前位置: 首页 > 工具软件 > BIND > 使用案例 >

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

洪和风
2023-12-01

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 |

相关日志

 类似资料: