LinuxSir.cn,穿越时空的Linuxsir!

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

Help me,兄弟们帮忙看看我的DNS服务器哪里设置的有问题!(已解决)

[复制链接]
发表于 2005-11-8 17:23:08 | 显示全部楼层 |阅读模式
nslookup和host以及dig都不能解析!提示不能连接到服务器!
本地测试,系统是AS 4 U1 ,并且已经指向DNS服务器!


named.conf配置如下:
zone "test.xstar.org" IN {
          type  master;
          file    "xstar.zone";
          allow-update { none; };
};

zone "0.168.192.in-addr.arpa"  IN {
         type  master;
         file     "xstar.local";
         allow-update  {none; };
};

注释掉了其它的区域申明,其它的都是模板默认的。

xstar.zone配置如下:

$TTL 1D

@      IN SOA  test.xstar.org.  root.test.xstar.org.
(           
                      1053891162
                      3H
                      15M
                      1W
                      1D )

                 IN   NS  test.xstar.org.

xstar            IN   A   192.168.0.1

www              IN   CNAME  xstar




xstar.local配置如下:

$TTL 1D

@       IN SOA  test.xstar.org.  root.test.xstar.org.
(
                   1053892104
                   1053892104
                   3H
                   15M
                   1W
                   1D )

        IN  NS   test.xstar.org.
1       IN  PTR   test.xstar.org.
发表于 2005-11-8 17:58:24 | 显示全部楼层
(
1053891162;
3H;
15M;
1W;
1D );

加分号!
回复 支持 反对

使用道具 举报

发表于 2005-11-8 18:05:01 | 显示全部楼层
@ IN SOA ns.xstar.org. root.xstar.org.

IN NS ns.xstar.org.

ns IN A 192.168.0.1
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-8 21:04:30 | 显示全部楼层
兄弟,不行的!
无论怎么改nslookup都提示:

;;connection  timed out; no servers could be reached
回复 支持 反对

使用道具 举报

发表于 2005-11-8 22:14:16 | 显示全部楼层
IN前面要有一个空格
IN NS test.xstar.org.
xstar IN A 192.168.0.1
www IN CNAME xstar
改为
  IN NS test.xstar.org.(IN前面要空格,这很重要)
test IN A 192.168.0.1
www IN CNAME test.xstar.org.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-8 22:59:24 | 显示全部楼层
都有空格,格式没有问题!
回复 支持 反对

使用道具 举报

发表于 2005-11-8 23:05:21 | 显示全部楼层
$TTL 1D

@ IN SOA test.xstar.org. root.test.xstar.org.
(
1053892104
1053892104
3H
15M
1W
1D )

IN NS test.xstar.org.
1 IN PTR xstar.xstar.org.


你先分清楚
test.xstar.org
xstar.xstar.org
的区别后我们再来讨论
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-8 23:24:58 | 显示全部楼层
Post by 河边星星
$TTL 1D

@ IN SOA test.xstar.org. root.test.xstar.org.
(
1053892104
1053892104
3H
15M
1W
1D )

IN NS test.xstar.org.
1 IN PTR xstar.xstar.org.


你先分清楚
test.xstar.org
xstar.xstar.org
的区别后我们再来讨论


这里我修改过了,而且服务器可以正常启动,没有任何错误提示,现在关键问题是正向解析都不能成功,nslookup总是提示出错!
回复 支持 反对

使用道具 举报

发表于 2005-11-8 23:50:46 | 显示全部楼层
你的电脑名是什么吗?

nslookup computer.domainname
出错的提示可否贴出来...
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-9 00:01:12 | 显示全部楼层
直接nslookup test.xstar.org后出现
Server :  192.168.0.1
Address: 192.168.0.1#53

** server can't find test.xstar.org :SERVFAIL

如果进入nslookup,就会出现:
;;connection timed out; no servers could be reached

计算机名是test
有错误的地方还望指出批评,谢谢!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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