免费注册 查看新帖 |

Chinaunix

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

[DNS] bind 9.6.1 CNAME问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-07-10 11:34 |只看该作者 |倒序浏览
//$ contents of named.conf 完整内容$//
options {
        directory "/var/named/chroot";
        dump-file "/var/named/chroot/data/cache_dump.db";
        statistics-file "/var/named/chroot/data/named_stats.txt";
        pid-file "/var/named/chroot/var/run/named.pid";
};
zone "." {
        type hint;
        file "etc/named.ca";
};
zone "localhost" {
        type master;
        file "etc/local.zone";
};
zone "0.0.127.in-addr.arpa" {
        type master;
        file "etc/127.0.0.zone";
        notify no;
};
zone "example.com" {
        type master;
        file "etc/example.com.zone";
};

//$ contents of example.com.zone $//
x.example.com.                IN        CNAME        x.example0.com.
; example0.com 该dns服务器不是域 ' example0.com ' 的 权威域名服务器。named.conf没有关于该example0.com的配置。
y.example.com.                IN        CNAME        y0.example.com.
y0.example.com.        IN        A                222.222.222.222

1,client:dig @dns_server x.example.com. A
bind 9.2.4 可以成功,bind 9.6.1 却不行。配置文件一模一样。
2,client:dig @dns_server y.example.com. A
bind 9.2.4,bind 9.6.1 都可以成功。

bind 9.6.1 上 在 option 选项里面,加入

        recursion yes;
        additional-from-auth yes;
        additional-from-cache yes;

还是同样的问题。

有遇到相同问题的人吗?

论坛徽章:
3
CU大牛徽章
日期:2013-03-13 15:29:07CU大牛徽章
日期:2013-03-13 15:29:49CU大牛徽章
日期:2013-03-13 15:30:19
2 [报告]
发表于 2009-07-10 13:46 |只看该作者

回复 #1 xufengnju 的帖子

allow-query
Specifies which hosts are allowed to ask ordinary DNS questions. allow-query may also
be specified in the zone statement, in which case it overrides the options allow-query statement.
If not specified, the default is to allow queries from all hosts.
allow-query-cache
Specifies which hosts are allowed to get answers from the cache. If allow-querycache
is not set then allow-recursion is used if set, otherwise allow-query is used if set, otherwise
the default (localnets; localhost is used.
allow-recursion
Specifies which hosts are allowed to make recursive queries through this server. If
allow-recursion is not set then allow-query-cache is used if set, otherwise allow-query is used if
set, otherwise the default (localnets; localhost is used.

论坛徽章:
0
3 [报告]
发表于 2009-07-10 18:09 |只看该作者
recursion 缺省是yes,所以加这个没有用。
可以试试recursion no;

论坛徽章:
0
4 [报告]
发表于 2009-07-10 20:55 |只看该作者

回复 #2 cadeerty 的帖子

加了

       allow-recursion {any;};

9.6.1就可以工作了。
这两个版本之间确实有这个区别。

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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP