关于Linux操作系统DNS包卸载和安装方法
发布时间:2008-06-16 10:22:32 来源:赛迪网 网友评论 0 条[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
- 推荐阅讯
- Linux下用vsftpd构建FTP服务器
- 在Linux系统下检测U盘是否已连接的方法
- 详解 Linux系统集群的安装与并行计算
- 入门:Linux 2.6 内核的嵌入式系统应用
- Linux下双网卡绑定技术实现负载均衡
- 在Linux下防止某个程序被运行两次的方法
- 零成本 Linux下轻松实现互联网过滤功能
- Linux脚本开发数学库在PHP中的重要性
- Linux步入Unix的后尘-铁甲Linux出现
- 菜鸟必读 Linux系统的字型设定方法
- 阅读排行
- 1.Windows外衣Linux心 红旗桌面版详测
- 2.扮酷你的桌面 Linux超靓壁纸下载(多图)
- 3.Linux安装流程
- 4.浅谈Linux的内核
- 5.RedHat Linux9.0安装实例(1)
- 6.ARM的嵌入式Linux移植体验之基本概念
- 7.Linux安装要点
- 8.红旗Linux桌面版5.0BETA版OS
- 9.如何在大硬盘上安装Linux
- 10.RealPlayer流媒体播放器Linux版
- 专题教程
- Windows Server-Windows Server文档-Windows Server新闻-Windows Ser PostgreSQL-PostgreSQL文档-PostgreSQL新闻-PostgreSQL专家
- WebLogic-WebLogic文档-WebLogic新闻-WebLogic专家 FreeBSD-FreeBSD文档-FreeBSD新闻-FreeBSD专家
- Linux-内核 GUI KDE Gnome DNS FTP 安全 安装-Linux专区 Windows-AD IIS ServerCore 虚拟化 安全 HPC-Windows专区
- 大话G游 专题:手机病毒揭密
- ARP攻击防范与解决方案 路由故障处理手册
