免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 2248 | 回复: 10
打印 上一主题 下一主题

[DNS] 请各位朋友帮我看一下dns到底那儿出了问题?谢谢先 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-04-25 18:05 |只看该作者 |倒序浏览
dns日志如下所示:
     Apr 25 17:39:15 localhost named[1509]: app.c:561: unexpected error:
Apr 25 17:39:15 localhost named[1509]: isc_app_shutdown() pthread_kill: No such
process
Apr 25 17:40:58 localhost named[1509]: loading configuration from '/etc/named.co
nf'
Apr 25 17:40:58 localhost named[1509]: no IPv6 interfaces found
Apr 25 17:40:58 localhost named[1509]: dns_master_load: 192.168.1.rev:3: ignorin
g out-of-zone data (jamond.net)
Apr 25 17:40:58 localhost named[1509]: dns_rdata_fromtext: 192.168.1.rev:3: near
eol: unexpected end of input
Apr 25 17:40:58 localhost named[1509]: zone 1.168.192.in-addr.arpa/IN: loading m
aster file 192.168.1.rev: unexpected end of input
Apr 25 17:40:58 localhost named[1509]: dns_rdata_fromtext: 200.200.200.rev:2: ne
ar eol: unexpected end of input
Apr 25 17:40:58 localhost named[1509]: zone 200.200.200.in-addr.arpa/IN: loading
master file 200.200.200.rev: unexpected end of input
Apr 25 17:40:58 localhost named[1509]: dns_rdata_fromtext: chen.com.hosts:2: nea
r eol: unexpected end of input
Apr 25 17:40:58 localhost named[1509]: zone chen.com/IN: loading master file che
n.com.hosts: unexpected end of input
Apr 25 17:40:58 localhost named[1509]: dns_master_load: jamond.net.hosts:3: no c
urrent owner name
Apr 25 17:40:58 localhost named[1509]: zone jamond.net/IN: loading master file j
amond.net.hosts: no owner

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
2 [报告]
发表于 2004-04-25 18:15 |只看该作者

请各位朋友帮我看一下dns到底那儿出了问题?谢谢先

检查你的named.conf中是不是少了};

论坛徽章:
0
3 [报告]
发表于 2004-04-25 18:27 |只看该作者

请各位朋友帮我看一下dns到底那儿出了问题?谢谢先

没有少呀!你看
zone "jamond.net"  {
       type master;
       file "jamond.net.hosts";
};
zone "1.168.192.in-addr.arpa"  {
    type master;
    file "192.168.1.rev";
};
zone "chen.com" IN {
  type master;
  file "chen.com.hosts";
};
zone "200.200.200.in-addr.arpa"  IN  {
  type master;
  file "200.200.200.rev";
};

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
4 [报告]
发表于 2004-04-25 18:43 |只看该作者

请各位朋友帮我看一下dns到底那儿出了问题?谢谢先

你要分配200.200.200网段的IP给你的主机?

论坛徽章:
0
5 [报告]
发表于 2004-04-25 18:47 |只看该作者

请各位朋友帮我看一下dns到底那儿出了问题?谢谢先

我只是测试的时候用的。这是错误的所在吗?

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
6 [报告]
发表于 2004-04-25 18:51 |只看该作者

请各位朋友帮我看一下dns到底那儿出了问题?谢谢先

贴出你的完整的/etc/hosts,/etc/named.conf,以及正向反向的文件。

论坛徽章:
0
7 [报告]
发表于 2004-04-25 19:04 |只看该作者

请各位朋友帮我看一下dns到底那儿出了问题?谢谢先

host.conf 内容:
order bind hosts
named.conf 内容:
options {
        directory "/var/named";
};
controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
zone "." IN {
        type hint;
        file "named.ca";
};

zone "localhost" IN {
        type master;
        file "localhost.zone";
        allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
        type master;
        file "named.local";
        allow-update { none; };
};
zone "jamond.net"  {
       type master;
       file "jamond.net.hosts";
};
zone "1.168.192.in-addr.arpa"  {
    type master;
    file "192.168.1.rev";
};
zone "chen.com" IN {
  type master;
  file "chen.com.hosts";
};
zone "200.200.200.in-addr.arpa"  IN  {
  type master;
  file "200.200.200.rev";
};
include "/etc/rndc.key";


正向  chen.com.hosts
$TTL 1D
@ 1D IN  SOA  sjnq01.chen.com. root.sjnq01.chen.com.
(
                   1053891162
                   3H
                   15M
                   1W
                   1D   )
    IN  NS  sjnq01.chen.com.
    IN  MX  5 sjnq01.chen.com.
sjnq01 IN A 200.200.200.1
sjnq02 IN A 200.200.200.2
sjnq03 IN A 200.200.200.3
www IN CNAME sjnq01.chen.com.

反向: 200.200.200.rev

$TTL 1D
@ IN SOA sjnq01.chen.com. root.sjnq01.chen.com.
(
                   1053892104
                   1053892104
                   3H
                   15M
                   1W
                   1D  )
  IN NS  sjnq01.chen.com.
1 IN  PTR sjnq01.chen.com.
2 IN  PTR sjnq02.chen.com.
3 IN  PTR sjnq03.chen.com.

本机的IP : 192.168.1.252
/etc/resolv.conf     :    nameserver 192.168.1.252

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
8 [报告]
发表于 2004-04-25 19:08 |只看该作者

请各位朋友帮我看一下dns到底那儿出了问题?谢谢先

不对,并且还少一个/etc/hosts文件的内容。参考一下“一起走过的日子”问的那个rh9上dns的设置的那个贴子。

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
9 [报告]
发表于 2004-04-25 19:09 |只看该作者

请各位朋友帮我看一下dns到底那儿出了问题?谢谢先

就是这个:http://chinaunix.net/jh/4/282429.html

论坛徽章:
0
10 [报告]
发表于 2004-04-25 19:09 |只看该作者

请各位朋友帮我看一下dns到底那儿出了问题?谢谢先

hosts  :
127.0.0.1               localhost.localdomain localhost

好好先生可以跟我大概的说一下错在哪里了吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP