免费注册 查看新帖 |

Chinaunix

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

[DNS] rndc dumpdb 导出的文件里面没有数据 [复制链接]

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

这个是缓存数据一点都没有,请问下哪些配置会导致没有缓存
DNS是用来做授权的不是转发和缓存DNS

key "rndc-key" {
        algorithm hmac-md5;
        secret "k92dIgVN0LtEc+bOCEo6qw==";
};

controls {
        inet 127.0.0.1 port 953
                allow { 127.0.0.1; } keys { "rndc-key"; };
};


logging {

channel query_log {





file "/var/log/bind/named.log" versions 3 size 20m;
severity info;
print-time yes;
print-category yes;
print-severity yes;
};

category queries {

query_log;

};

};

options{

#--------------an quan--------
directory "/usr/local/bind/etc";
dump-file "/usr/local/bind/etc/dns.db";
pid-file "named.pid";
max-cache-ttl 10;
};



acl "dns-ip-list"{

          192.168.1.100;
          192.168.1.101;

};

view "any_view" {
match-clients { key dns-ip-list;any; };
allow-query-cache { any; };
allow-recursion { none; };
allow-transfer { none; };
recursion no;
dlz "Mysql_any_zone" {
database "mysql
{host=127.0.0.1 dbname=sq_dns ssl=false port=3306 user=sq_dns pass=123654 }
{select zone from dns_records where zone = '$zone$' and view='ANY' limit 1}
{select ttl, type, mx_priority, case when lower(type)='txt' then concat('\"', data, '\"') when lower(type) = 'soa' then concat_ws(' ', data, resp_person, serial, refresh, retry, expire, minimum) else data end as mydata from dns_records where zone = '$zone$' and host = '$record$' and view='ANY' limit 1}
{}
{select ttl, type, host, mx_priority, case when lower(type)='txt' then concat('\"', data, '\"') else data end as mydata, resp_person, serial, refresh, retry, expire, minimum from dns_records where zone = '$zone$' and view='ANY'  limit 1}
{select zone from xfr_table where zone = '$zone$' and client = '$client$' and view='ANY' }
{update data_count set count = count + 1 where zone ='$zone$' and view='ANY'  limit 1}";
};
};

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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP