当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > Redhat9.0 下DNS配置笔记

Unix/Linux
小型机cpu类型
bind9的安装
如何查看服务器上有多少个CPU
wu-ftp 设置匿名服务器(转载)
Solaris硬盘分区学习笔记(转载)
如何在solaris中添加删除磁盘和分区 (转载)
共享光驱怎么做?
改solaris 8的ip地址的问题
加路径的问题 ;(
超级终端如何发送STOP+A?
如何对某个端口限制IP访问 比如 针对1521端口 只允许某个IP访问
如何让root用户远程telnet?
/usr/lib/ld.so.1损坏或丢失
[分享]Sun X3151A 光纤网卡故障排除实例
[分享]Solaris 2.6+Ultra5内置扬声器故障诊断实例
在VMWARE上装Sun Cluster 3.1 Update 3(ZT )
Windows客户端使用UNIX打印服务器上共享打印机的方法
如何改网卡IP地址
[color=darkblue]CacheFS笔记[/color]
在SUN工作站上安装RTL8139网卡

Unix/Linux 中的 Redhat9.0 下DNS配置笔记


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 53 ::
收藏到网摘: n/a

  Redhat9.0 下DNS配置笔记
作者:andrew_ai(小艾)
环境:企业局域网
系统:Redhat9.0,并设有三个段的IP(四网卡),分别是192.168.2.7 ; 192.168.6.7 ; 192.168.10.7
需配置文件:1./etc/named.conf(系统自带)
2./var/named/2.168.192.file(自建)
3./var/named/6.168.192.file(自建)
4./var/named/10.168.192.file(自建)
5./var/named/mytest.com
6./etc/host.conf

  跟很多菜菜们一样,我配置DNS也是一波三折,人都搞晕掉了,查了很多资料也问了很多人,但得到的结果

始终是那句:Can't find ...。一怒之下,把自带的BIND干掉,重新安装了与之相关的所有套件再配置。嘿

嘿...搞定!!!,后来怀疑可能是套件有问题或者是并没有装全(未经考证)。小弟我谨以此文章感谢所有无私网

友的奉献精神,并希望它能带给正处困境中的Linuxer一点帮助或启示。

一、安装BIND:
  1.下载如下套件:bind-devel-9.2.1-16.i386.rpm
bind-utils-9.2.1-16.i386.rpm
bind-9.2.1-16.i386.rpm
caching-nameserver-7.2-7.noarch.rpm
2.如有自带BIND先除去。在rpm -e bind时可能出现错误提示:
   [root@andrew root]# rpm -e bind
error: Failed dependencies:
bind = 9.2.1 is needed by (installed) bind-devel-9.2.1-16
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
    那就得先将提示的几个套件先移除。
3.安装BIND及相关。rpm -ivh xxx.rpm即可。
当然,我把自带BIND移除也是被逼无路,迫不得已的之行为,对于高手们来说可能完全不必要。

二、具体配置及说明:

###named.conf
// generated by named-bootconf.pl



options {
directory "/var/named"; ##指定DNS文件所在的目录
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};



//
// a caching on