我的dns怎么了?

由 buddy 在 03-14-2003 20:25 发表:

我的dns怎么了?

现在的问题是:我的dns公作不是很正常.表现为:

1,可以为别人提供dns服务,但是设置的二级服务器:

secondary 2best.info 61.129.64.144 2best.hosts

secondary sdu.edu.cn 202.194.15.12 sdu.hosts

secondary edu.cn 202.112.0.35 edu.hosts

文件2best.hosts,sdu.hosts,edu.hosts根本没内容.

这是怎么回事?

2,我用ping dns.buddy.2best.info时显示:dns.buddy.2best.info的地址是61.129.64.144

为什么会是为我提供域名的服务器?

配置过程为:

首先修改了/etc/resolv.conf:

domain buddy.2best.info

nameserver 211.87.213.185

search localdomain

修改/etc/host.conf:

order hosts,bind

multi on

定义文件/etc/named.boot为:

////////////////////////////////////////////////////////////

;

;boot file for name server;

;

directory /usr/local/named

;type domain source host/file backup file

cache root.cache

domain buddy.2best.info

primary buddy.2best.info buddy.host

primary 0.0.127.in-addr-arpa named.local

primary 213.87.211.in-addr-arpa named.hosts

secondary 2best.info 61.129.64.144 2best.hosts

secondary sdu.edu.cn 202.194.15.12 sdu.hosts

secondary edu.cn 202.112.0.35 edu.hosts

///////////////////////////////////////////////////////////////////////

在/usr/local/named目录下建立文件:buddy.hosts,name.local,named.hosts

内容为:

buddy.hosts:

////////////////////////////////////////////////////////////

@ IN SOA dns.buddy.2best.info. jie.dns.buddy.2best.info

( 1987022701;

10800;

3600;

3600000;

IN NS linux.buddy.2best.info.

dns. IN A 211.87.213.185

linux IN CNAME dns

wcoast IN CNAME 211.87.213.117

///////////////////////////////////////////////////////

name.local:

/////////////////////////////////////////////////////////////

@ IN SOA linux.buddy.2best.info. jie.buddy.2best.info

(

1987022701;

3600;

300;

3600000;

IN NS linux.buddy.2best.info.

185 IN PTR localhost

/////////////////////////////////////////////////////////

named.hosts:

//////////////////////////////////////////////////////////

@ IN SOA dns.buddy.2best.info jie.linux.buddy.2best.info

(

1987022701;

3600;

300;

3600000;

IN NS dns.buddy.2best.info

185 IN PTR dns<br

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus