Linux system DNS package uninstallation and installation method

  

[root@linux-tys root]# rpm -qa |  Grep bind

bind-9.2.1-16 —— This version of DNS is not stable, so upgrade to version 9.2.1

redhat-config-bind- 1.9.0-13

bind-utils-9.2.1-16

ypbind-1.11-4

1. Delete the 9.2.1 package, as this version does not Too stable

[root@linux-tys root]# rpm -e bind-9.2.1-16 ——You can see the associated package when deleting the package, you need to delete

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 ——delete graphics configuration tool

[root@linux-tys root]# rpm -e bind-9.2.1 -16 ——delete DNS package

warning: /etc/rndc.key saved as /etc/rndc.key.rpmsave —— prompts that a file is saved in ……

[root@linux-tys root]# rm -f /etc/rndc.key.rpmsave

[root@linux-tys root]# rm -f /etc/named.conf.rpmsave< Br>

[root@linux-tys root]# rpm -e bind-utils-9.2.1-16

[root@linux-tys root]# rpm -qa |  Grep bind

ypbind-1.11-4 ——This package is not related to DNS

Note: Finally uninstall the toolkit when uninstalling, install the toolkit first when installing

2, install the 9.2.2 package

[root@linux-tys sharedoc]# rpm -ivh bind-utils-9.2.2-13Thiz.i586.rpm —— should first install the toolkit

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%]< Br>

Attached: linux dns client configuration

[root@linux-clt named]# more /etc/resolv.conf

nameserver 172.16.1.1 —— first DNS server

nameserver 61.139.2.69

nameserver 192.168.80.10

search sky.com

domain sky.com

Copyright © Windows knowledge All Rights Reserved