免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1285 | 回复: 1

[DNS] DNS请教 [复制链接]

论坛徽章:
0
发表于 2004-10-28 12:06 |显示全部楼层
named.conf配置文件为:
zone "." IN {
        type hint;
        file "named.ca";
};
zone "localhost" IN {
        allow-update { none; };
        type master;
        file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" IN {
        allow-update { none; };
        type master;
        file "named.local";
};
zone "zyy123.com" IN {
        type master;
        file "zyy123.com.zone";
};
zone "0.168.192.in-addr.arpa" IN {
        type master;
        file "zyy123.com.arpa";
};
include  "/etc/rndc.key";
正向配置为:

$TTL 86400
@       IN      SOA     mail.zyy123.com.                root.mail.zyy123.com.   (
                                14 ; serial
                                28800 ; refresh
                                14400 ; retry
                                3600000 ; expire
                                86400 ; ttl
                                )

IN      NS      mail.zyy123.com.
IN      A       192.168.0.167
mail    IN      A       192.168.0.167
www     IN      A       192.168.0.167
www     IN CNAME        mail.zyy123.com.
zyy123.com.     IN      MX      10      mail.zyy123.com.

反向文件为:
$TTL 86400
@        IN    SOA    mail.zyy123.com.    root.mail.zyy123.com.
(
                  20040730    ;serial number
                  2h        ;refresh timeout
                  40m        ;retry  refresh timeout
                  1w        ;expire timeout
                  2h        ;TTL time
                )
IN    NS    mail.zyy123.com.
167.0.168.192.in-addr.arpa      IN    PTR    www.zyy123.com.
167.0.168.192.in-addr.arpa      IN    PTR    ftp.zyy123.com.
167.0.168.192.in-addr.arpa      IN    PTR    mail.zyy123.com.
167.0.168.192.in-addr.arpa      IN    PTR    bbs.zyy123.com.
log为
Oct 28 12:03:53 mail named: named Æ&&& succeeded
Oct 28 12:03:53 mail named[1902]: no IPv6 interfaces found
Oct 28 12:03:53 mail named[1902]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 28 12:03:53 mail named[1902]: listening on IPv4 interface eth0, 192.168.0.167#53
Oct 28 12:03:53 mail named[1902]: command channel listening on 127.0.0.1#953
Oct 28 12:03:53 mail named[1902]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022703
Oct 28 12:03:53 mail named[1902]: dns_rdata_fromtext: zyy123.com.arpa:2: near eol: unexpected end of input
Oct 28 12:03:53 mail named[1902]: zone 0.168.192.in-addr.arpa/IN: loading master file zyy123.com.arpa: unexpected end of input
Oct 28 12:03:53 mail named[1902]: dns_master_load: zyy123.com.zone:14: www.zyy123.com: CNAME and other data
Oct 28 12:03:53 mail named[1902]: zone zyy123.com/IN: loading master file zyy123.com.zone: CNAME and other data
Oct 28 12:03:53 mail named[1902]: dns_master_load: localhost.zone:15: unknown RR type 'IN'
Oct 28 12:03:53 mail named[1902]: zone localhost/IN: loading master file localhost.zone: unknown class/type
请问一下,我的DNS是哪里有问题?
谢谢了

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
发表于 2004-10-28 13:55 |显示全部楼层

DNS请教

參考一下:
http://bbs.chinaunix.net/forum/viewtopic.php?t=352904
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP