免费注册 查看新帖 |

Chinaunix

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

[DNS] dns问题,已经郁闷了,大家帮看看 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-19 09:45 |只看该作者 |倒序浏览
同样的配置问题文件,不同的系统,在fedora5下能够解析,在cent-os下就是不能解析,大家帮忙看看问题出在哪,先感谢了。

我在内网想把mail.shijie.cc解析到IP 10.1.1.55上

#rpm -qa |gerp bind
bind-utils-9.2.4-2
bind-9.2.4-2
bind-libs-9.2.4-2
bind-chroot-9.2.4-21.1.55
ypbind-1.17.2-8

name.conf文件如下
//
// named.conf for Red Hat caching-nameserver
//

options {
        directory "/var/named";
        dump-file "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        /*
         * If there is a firewall between you and nameservers you want
         * to talk to, you might need to uncomment the query-source
         * directive below.  Previous versions of BIND always asked
         * questions using port 53, but BIND 8.1 uses an unprivileged
         * port by default.
         */
         // query-source address * port 53;
};

//
// a caching only nameserver config
//
controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};


zone "1.1.10.in-addr.arpa." IN {
        type master;
        file "10";
};

zone "shijie.cc." IN {
        type master;
        file "shijie";
};
zone "." IN {
        type hint;
        file "named.ca";
};

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

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 "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
        type master;
        file "named.ip6.local";
        allow-update { none; };
};

zone "255.in-addr.arpa" IN {
        type master;
        file "named.broadcast";
        allow-update { none; };
};

zone "0.in-addr.arpa" IN {
        type master;
        file "named.zero";
        allow-update { none; };
};

include "/etc/rndc.key";


--------------------------------------------
正解文件如下:


$TTL 1H
@       SOA    mail.shijie.cc.  root.mail.shijie.cc. (   3
                                                3H
                                                1H
                                                1W
                                                1H )
                NS      mail.shijie.cc.
mail    A       10.1.1.55


--------------------------------------------
反解文件如下:

$TTL 1H
@        SOA    mail.shijie.cc. root.mail.shijie.cc. (  2
                                                3H
                                                1H
                                                1W
                                                1H )
        IN      1H      NS      mail.shijie.cc.
        NS      mail.shijie.cc.
55      IN      1H      PTR     mail.shijie.cc.

论坛徽章:
0
2 [报告]
发表于 2006-08-30 17:26 |只看该作者
好像区域文件里应该是
@       IN                SOA
你好像没有   IN
不知道是不是这个问题。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP