[root@linux-tys root]# rpm -qa | grep bind
bind-9.2.1-16 -----這個(gè)版本的DNS不太穩(wěn)定,所以要升級(jí)到9.2.1之上的版本
redhat-config-bind-1.9.0-13
bind-utils-9.2.1-16
ypbind-1.11-4
1、刪除9.2.1的包,因這個(gè)版本不太穩(wěn)定
[root@linux-tys root]# rpm -e bind-9.2.1-16 ----刪除包時(shí)可以看到提示有關(guān)聯(lián)的包,需要先刪除
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 ----提示有一個(gè)文件保存于……
[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無關(guān)
注意:卸載時(shí)卸工具包,安裝時(shí)要先安裝工具包
2、安裝9.2.2的包
[root@linux-tys sharedoc]# rpm -ivh bind-utils-9.2.2-13Thiz.i586.rpm ----應(yīng)先安裝工具包
warning: bind-utils-9.2.2-13Thiz.i586.rpm: V3 DSA signature: NOKEY, key ID f2b3fb5e
Preparing... ############## []
1:bind-utils ############## []
[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... ############## []
1:bind ############## []
附:linux dns 客戶端配置
[root@linux-clt named]# more /etc/resolv.conf
nameserver 172.16.1.1 -----個(gè)DNS服務(wù)器
nameserver 61.139.2.69
nameserver 192.168.80.10
search sky.com
domain sky.com
關(guān)于Linux操作系統(tǒng)DNS包卸載和安裝方法
更新時(shí)間: 2008-04-17 14:07:42來源: 粵嵌教育瀏覽量:607