当前位置: 首页 > 图文教程 > 服务器 > Linux服务器 > 在Redhat9.0上详尽配置DNS服务

Linux服务器
RedHatLinux网络服务器构架实务(七)
RedHatLinux网络服务器构架实务(八)
RedHatLinux网络服务器构架实务(九)
在LINUX下使用Squid代理服务器
构建没有NT服务器的NT域
用Samba实现文件服务器功能
Debian服务器设置入门系列教程
RedHat8.0服务器配置指南--Webmail的实现
代理服务器Squid使用详解
为编程开发准备一台友好的CVS服务器
Linux的FTP服务器设置篇
在Linux代理服务器上设置防火墙
在Linux上用Qpopper建立POP3服务器
用Linux引导CD排除服务器故障
在Linux上如何重新进行Domino服务器的配置
TurbolinuxforiSeries服务器软/硬件需求
Linux服务器中架设AntiVir指南
基于Linux的Web服务器性能测试
Linux怎样做计费服务器
网络服务器基础

Linux服务器 中的 在Redhat9.0上详尽配置DNS服务


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


前提:机器名为bak.5ilinux.com域名为5ilinux.com

1.从安装盘安装

rpm-ivhbind-9.2.2-21.i386.rpm

2.增加配置文件

vi/etc/named.conf

##named.conf-configurationforbind
##Generatedautomaticallybyredhat-config-bind,alchemistetal.
#Anychangesnotsupportedbyredhat-config-bindshouldbeput
#in/etc/named.custom
#controls{inet127.0.0.1allow{localhost;}keys{rndckey;};};
include"/etc/rndc.key";
options{
directory"/var/named/";
};

zone"."{
typehint;
file"named.ca";
};

zone"0.0.127.in-addr.arpa"{
typemaster;
file"0.0.127.in-addr.arpa.zone";
};

zone"localhost"{
typemaster;
file"localhost.zone";
};

zone"5ilinux.com"{
typemaster;
file"5ilinux.com.zone";
};

下载named.ca
wgetftp://ftp.rs.internic.net/domain/named.root

下载后改名为named.ca存在/var/named目录下

vi/var/named/localhost.zone

$TTL86400@[email protected](
1;serial
28800;refresh
7200;retry
604800;expire
86400;ttl
)
INNSlocalhost.
@INA127.0.0.1

vi/var/named/0.0.127.in-addr.arpa.zone

[email protected](
2;serial
28800;refresh
7200;retry
604800;expire
86400;ttl
)

@INNSlocalhost.

1INPTRlocalhost.
1INPTRbak.

vi/var/named/5ilinux.com.zone

[email protected](
3;serial
28800;refresh
7200;retry
604800;expire
86400;ttl
)

INNSbak.wapya.com.

wwwINA210.51.0.124
bakINA210.51.0.124
mailINCNAMEwww
wapINA210.51.0.122
5ilinux.comINMX10www


ok了,就是这些配置文件。为了方便以后查资料,所以把配置过程写下来
/etc/rc.d/iinit.d/namedrestart

重启一下服务就可以用了