LinuxSir.cn,穿越时空的Linuxsir!

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

DNS服务器问题

[复制链接]
发表于 2004-3-9 18:52:24 | 显示全部楼层 |阅读模式
最近无事想装个DNS服务器玩玩,可是怎么也搞不定,在BBS上转了几天,看了N多的文章,还是搞不定,没办法,只好发个贴子让朋友们帮帮忙了。

两台办公室局域网的机器,一台LINUX9,IP:10.57.36.97,一台WindowsXP,10.57.36.96,想用LINUX当DNS服务器,已经装上了DNS软件,装XP的DNS地址改为LINUX地址10.57.36.97,可以正常访问互联网.

想将XP做为WWW服务,域名为www.pdscnc.com

下面是我的name.conf(只写关键部分)
------------------------
zone "pdscnc.com" IN {
type master;
file "pdscnc.com.db";
};
----------------------

pdscnc.com.db内容
-----------------------
$ TTL 86400
$ ORLGIN pdscnc.com.
@ IN SOA pdscnc.com. root.pdscnc.com. (
20040309001;serial
28800;refresh
14400;retry
3600000;expire
86400; )
IN NS pdscnc.com.
IN MX 10 pdscnc.com.cn.
www IN A 10.57.36.96
mail IN A 10.57.36.96
-----------------------------------

nslookup命令结果:
----------------------------
[root@www named]# nslookup www.pdscnc.com
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server: 10.57.36.97
Address: 10.57.36.97#53

** server can't find www.pdscnc.com: SERVFAIL
--------------------------------------

现在不能解析www.pdscnc.com这个网址。请问如何解决??
 楼主| 发表于 2004-3-10 14:51:26 | 显示全部楼层
没有人知道吗??
发表于 2004-3-10 16:13:04 | 显示全部楼层
xp的dns客户端为10.57.36.96,有吗?
 楼主| 发表于 2004-3-12 09:31:14 | 显示全部楼层
@               IN      SOA     ns.pdscnc.com. root.pdscnc.com. (
                        2003092604 ; serial
                        7200 ; refresh
                        3600 ; retry
                        3600000 ; expire
                        7200 ; default_ttl
                        )
                IN      NS      ns.pdscnc.com.
                IN      MX  10  mail.pdscnc.com.
www             IN      A       10.57.36.97
mail            IN      A       10.57.36.97
------------
我从朋友哪儿拷了一份改过后的配置文件,现在DNS已经基本正常了,可是问题出在哪儿了我也不太清楚.
现在还有一个问题就是,DNS有部分网址不能解析出来,不知道大家有没有遇到这种情况.
发表于 2004-3-12 09:48:08 | 显示全部楼层
想将XP做为WWW服务
一台LINUX9,IP:10.57.36.97,一台WindowsXP,10.57.36.96
IN NS ns.pdscnc.com.
IN MX 10 mail.pdscnc.com.
www IN A 10.57.36.97
mail IN A 10.57.36.97
请问楼住何以正常?
发表于 2004-3-12 12:38:29 | 显示全部楼层
/etc/resolv.conf呢?
 楼主| 发表于 2004-3-13 18:35:51 | 显示全部楼层
已经在LINUX上装了APACHE,现在用LINUX做WWW.

[root@sbzy-server etc]# cat resolv.conf
domain pdscnc.com
search pdscnc.com
nameserver 10.57.36.97
nameserver 202.102.227.68
nameserver 202.102.224.68

后面两个是河南的DNS服务器.

可是现在还有个问题,有部分网址不能正常解析..不知道是什么原因.

[root@sbzy-server etc]# nslookup
Note:  nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead.  Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
> www.google.com
Server:         10.57.36.97
Address:        10.57.36.97#53

** server can't find www.google.com: NXDOMAIN
> www.yesky.com
Server:         10.57.36.97
Address:        10.57.36.97#53

** server can't find www.yesky.com: NXDOMAIN
> www.163.com
Server:         10.57.36.97
Address:        10.57.36.97#53

** server can't find www.cctv.com: NXDOMAIN
> www.linuxfans.org
Server:         202.102.224.68
Address:        202.102.224.68#53

Non-authoritative answer:
Name:   www.linuxfans.org
Address: 211.100.7.101
> www.linuxsir.cn
Server:         202.102.227.68
Address:        202.102.227.68#53

Non-authoritative answer:
Name:   www.linuxsir.cn
Address: 211.93.98.22
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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