免费注册 查看新帖 |

Chinaunix

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

[DNS] bind9.8 servfail [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-09-08 20:13 |只看该作者 |倒序浏览
本帖最后由 cyzhu 于 2011-09-08 20:16 编辑

bind新版本是不是有什么新规则?
查自己发布的域名,公网dns server也能解析。
但是不能做递归查询。

[root@test ~]# dig @xxx.xxx.xxx.xxx www.sina.com.cn

; <<>> DiG 9.6.-ESV-R3 <<>> @114.113.149.66 www.sina.com.cn
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 16629
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.sina.com.cn.               IN      A

;; Query time: 2777 msec
;; SERVER: xxx.xxx.xxx.xxx#53

named.conf文件没错误:
acl bogusnets { 0.0.0.0/8;1.0.0.0/8;2.0.0.0/8;169.254.0.0/16;224.0.0.0/3; };

options {
        directory "/data/named";
        pid-file "named.pid";
        version "BIND9";
        max-cache-size 0;
        recursion yes;
        cleaning-interval 30;
        recursive-clients 50000;
        max-ncache-ttl        3600;
        tcp-clients 500;
        files 65535;
        blackhole { bogusnets; };
        allow-recursion { any; };
        allow-query-cache { any; };
        allow-transfer { none; };
};

logging {
        channel warning {
        file "log/named.log" versions 3 size 200m;
                severity warning;
                print-category yes;
                print-severity yes;
                print-time yes;
        };
        channel query_log {
                file "log/query.log"    versions 3 size 200m;
                severity info;
                print-severity yes;
                print-time yes;
                print-category yes;
        };
        channel default_log {
                file "log/default.log"    versions 3 size 200m;
                severity info;
                print-severity yes;
                print-time yes;
                print-category yes;
        };
        category config { default_log; };
        category queries { query_log; };
        category security { default_log; };
        category client { default_log; };
        category lame-servers { default_log; };
        category default { default_log; };
};

key "rndc-key" {
        algorithm hmac-md5;
        secret "nUl2bJUdfdfkjlasd5FPeqAHySv5Q59A==+++";
};
controls {
        inet 127.0.0.1 port 953
                allow { 127.0.0.1; } keys { "rndc-key"; };
};

include "master/acl.conf";

view "chinamobile" {
match-clients { chinamobile; };
zone "." IN {
      type hint;
      file "named.root";
};

zone "localhost" IN {
      type master;
      file "localhost.zone";
};
include "master/chinamobile.def";
};

view "unicom" {
match-clients { unicom; };
zone "." IN {
      type hint;
      file "named.root";
};

zone "localhost" IN {
      type master;
      file "localhost.zone";
};
include "master/unicom.def";
};

view "telcom" {
match-clients { telcom; };
zone "." IN {
      type hint;
      file "named.root";
};

zone "localhost" IN {
      type master;
      file "localhost.zone";
};
include "master/telcom.def";
};

view "any" {
match-clients { any; };
zone "." IN {
      type hint;
      file "named.root";
};

zone "localhost" IN {
      type master;
      file "localhost.zone";
};

include "master/any.def";
};


我把bind view取消了,换成最简单的配置也一样。view定义文件很简单。不贴了。
有经验的朋友,请指点一下。谢谢了

论坛徽章:
0
2 [报告]
发表于 2011-09-20 08:46 |只看该作者
query.log里面怎么说的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP