免费注册 查看新帖 |

Chinaunix

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

[DNS] bind9 logging功能问题咨询 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-06-01 14:04 |只看该作者 |倒序浏览
配置文件如下:
controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

logging{
        channel "bind_log" {
                file "/var/named/bind.log" versions 3 size 25m;
                severity info;
                print-time yes;
                print-severity yes;
                print-category yes;
                };
        channel "query_log" {
                file "/var/named/query.log" versions 3 size 25m;
                severity info;
                print-time yes;
                };
        category lame-servers { null; };
        category queries { "query_log"; };
        category default{ "bind_log"; };
};

zone "." IN {
................
................
................
为什么在/var/named下面的日志里面看不到记录。或者我的参数根本就没起作用。服务都重启过了。

请教了。。。。。

论坛徽章:
0
2 [报告]
发表于 2009-06-01 17:50 |只看该作者
文件权限、文件路径是否正确。

论坛徽章:
0
3 [报告]
发表于 2009-06-02 08:56 |只看该作者

回复 #2 llzqq 的帖子

文件权限是没有问题的,路径什么的都检查很多次了。
555555555.。。

论坛徽章:
0
4 [报告]
发表于 2009-06-02 09:30 |只看该作者
logging {
                channel "dnslog" {
                        file "/var/log/dnslog" size 20M ;
                        severity info;
                        print-time yes;
                        print-category yes;
                        };
                category "queries" {"dnslog";};
                category "client" {"dnslog";};
                category "resolver" {"dnslog";};
                category "security" {"dnslog";};
                category "update" {"dnslog";};
                };
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP