之前bind9.2使用正常,https://www.isc.org/node/474,DNS要求升级到BIND 9.6.1-P1,

问题出来了:查询非本服务器域名出现查询拒绝,服务器端日志为

03-Aug-2009 16:46:10.282 security: client 219.135.228.103#17634: query (cache) 'mycompany.com.cn/MX/IN' denied
03-Aug-2009 16:46:10.306 security: client 219.135.228.103#17635: query (cache) 'mycompany.com.cn/MX/IN' denied
03-Aug-2009 16:54:47.969 security: client 202.82.24.86#17029: query (cache) 'aabbcc.com/A/IN' denied


原named.conf为:

  1. options {  
  2.         directory "/var/named/db";  
  3.         pid-file "/var/run/named.pid";  
  4.         dump-file "/var/run/dumpfile.db";  
  5.         statistics-file "/var/run/named_stats.db";  
  6.         rrset-order {order random;};  
  7.         listen-on { 61.145.121.11;};  
  8.         allow-transfer { 202.66.8.21; 202.66.8.7; 202.66.8.1; 202.82.24.88; };  
  9.  
  10. };  
  11.  
  12.  
  13. key "rndc-key" {  
  14.        algorithm hmac-md5;  
  15.        secret "kf08fdjkljfjdkjfkfdsalkjr==";  
  16. };  
  17.  
  18.  
  19. controls {  
  20.        inet 127.0.0.1 port 953  
  21.                allow { 127.0.0.1; } keys { "rndc-key"; };  
  22. };  
  23.  
  24.  
  25.  
  26. logging {  
  27.            category lame-servers {null;};  
  28.            channel query_log {  
  29.                      file "/var/run/named.log" versions 5 size 10m;  
  30.                      print-time yes;  
  31.                      print-category yes;  
  32.  
  33.                     severity  debug;  
  34.                  };  
  35.             category "default" { "query_log"; };  
  36. };  
  37.  
  38.  
  39.  
  40.  
  41. zone "." in {  
  42.         type hint;  
  43.         file "named.ca";  
  44. };  
  45.  
  46. zone "0.0.127.in-addr.arpa" in {  
  47.         type master;  
  48.         file "named.local";  
  49. };  
  50.  
  51.  
  52. ........ 


加了这3句似乎也没有什么用:

  1.  
  2. additional-from-cache  yes;  
  3. additional-from-auth  yes;  
  4. recursion  yes; 


解决办法:

  1. allow-query-cache { any; }; 
此文章由 flyinweb 于 2010-12-10 17:29:34 编辑

本日志由 flyinweb 于 2009-08-04 00:47:48 发表,目前已经被浏览 4929 次,评论 0 次;

作者添加了以下标签: allow-query-cache

引用通告:http://www.517sou.net/Article/166/Trackback.ashx

评论订阅:http://www.517sou.net/Article/166/Feeds.ashx

评论列表

    暂时没有评论
(必填)
(必填,不会被公开)