QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 494|回复: 0

redhead9.0 DNSserver

[复制链接]
发表于 2004-8-25 22:52:27 | 显示全部楼层 |阅读模式
REDHEAD9.0 安装了DNS 域名服务,可以配置以后,就是不好用.

看了张微波的文档.可是第一步就不行啊.我是用的三张盘安装的.
他的第一步用安装光盘安装提示找不到文件.

哪位高人作过了.能否提供一个可行的安装方法.小弟菜请大家帮忙.

谢谢了.

在线等回....如果有文档最好了.
Redhat9上配置DNS
作者:张微波 发文时间:2004.08.03

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

1。从安装盘安装
rpm -ivh bind-9.2.2-21.i386.rpm

2。增加配置文件
vi /etc/named.conf





## named.conf - configuration for bind
# # Generated automatically by redhat-config-bind, alchemist et al.
# Any changes not supported by redhat-config-bind should be put
# in /etc/named.custom
# controls { inet 127.0.0.1 allow { localhost; } keys { rndckey; }; };
include "/etc/rndc.key";
options {
directory "/var/named/";
};

zone "." {
type hint;
file "named.ca";
};

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

zone "localhost" {
type master;
file "localhost.zone";
};

zone "5ilinux.com" {
type master;
file "5ilinux.com.zone";
};



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

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

vi /var/named/localhost.zone

$TTL 86400 @ IN SOA @ root.localhost (
1 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
IN NS localhost.
@ IN A 127.0.0.1



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

$TTL 86400 @ IN SOA localhost. root.localhost (
2 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)

@ IN NS localhost.

1 IN PTR localhost.
1 IN PTR bak.



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

$TTL 86400 @ IN SOA bak.wapya.com. root.localhost (
3 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)

IN NS bak.wapya.com.

www IN A 210.51.0.124
bak IN A 210.51.0.124
mail IN CNAME www
wap IN A 210.51.0.122
5ilinux.com IN MX 10 www



ok了,就是这些配置文件,至于原理我就不讲了。只是为了方便以后查资料,所以把配置过程写下来
/etc/rc.d/iinit.d/named restart

重启一下服务就可以用了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-16 10:53 , Processed in 0.071166 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表