class="21087">
;
[root@linux-tys root]# rpm -qa | grep bind
bind-9.2.1-16 -----這個版本的DNS不太穩定,所以要升級到9.2.1之上的版本
redhat-config-bind-1.9.0-13
bind-utils-9.2.1-16
ypbind-1.11-4
1、刪除9.2.1的包,因這個版本不太穩定
[root@linux-tys root]# rpm -e bind-9.2.1-16 ----刪除包時可以看到提示有關聯的包,需要先刪除
error: Failed dependencies:
bind is needed by (installed) redhat-config-bind-1.9.0-13
bind is needed by (installed) caching-nameserver-7.2-7
bind >= 9.1.3-0.rc2.3 is needed by (installed) caching-nameserver-7.2-7
[root@linux-tys root]# rpm -e caching-nameserver-7.2-7
warning: /etc/named.conf saved as /etc/named.conf.rpmsave
[root@linux-tys root]# rpm -e redhat-config-bind-1.9.0-13 ----刪除圖形配置工具
[root@linux-tys root]# rpm -e bind-9.2.1-16 ----刪除DNS包
warning: /etc/rndc.key saved as /etc/rndc.key.rpmsave ----提示有一個文件保存於……
[root@linux-tys root]# rm -f /etc/rndc.key.rpmsave
[root@linux-tys root]# rm -f /etc/named.conf.rpmsave
[root@linux-tys root]# rpm -e bind-utils-9.2.1-16
[root@linux-tys root]# rpm -qa | grep bind
ypbind-1.11-4 -----此包與DNS無關
注意:卸載時最後卸工具包,安裝時要先安裝工具包
2、安裝9.2.2的包
[root@linux-tys sharedoc]# rpm -ivh bind-utils-9.2.2-13Thiz.i586.rpm ----應先安裝工具包
warning: bind-utils-9.2.2-13Thiz.i586.rpm: V3 DSA signature: NOKEY, key ID f2b3fb5e
Preparing... ############## [100%]
1:bind-utils ############## [100%]
[root@linux-tys sharedoc]# rpm -ivh bind-9.2.2-13Thiz.i586.rpm
warning: bind-9.2.2-13Thiz.i586.rpm: V3 DSA signature: NOKEY, key ID f2b3fb5e
Preparing... ############## [100%]
1:bind ############## [100%]
附:linux dns 客戶端配置
[root@linux-clt named]# more /etc/resolv.conf
nameserver 172.16.1.1 -----第一個DNS服務器
nameserver 61.139.2.69
nameserver 192.168.80.10
search sky.com
domain sky.com