LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 755|回复: 1

我的dns怎么了?

[复制链接]
发表于 2003-3-14 20:25:54 | 显示全部楼层 |阅读模式
现在的问题是:我的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;
                86400)
                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;
                        1400)
        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;
                        1400)
        IN        NS                 dns.buddy.2best.info
185        IN        PTR        dns



/////////////////////////////////////////////////////////
 楼主| 发表于 2003-3-14 22:04:48 | 显示全部楼层

named.conf的内容为:

## named.conf - configuration for bind
#
# Generated automatically by bindconf, alchemist et al.
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  "buddy.2best.info" {
        type master;
        file  "buddy.2best.info.zone";
};
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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