loggin {
channnel 通道名称 {
file "/日志" version 版本号 size 大小;
syslog 类别;
设置DNS服务器使用syslog服务来记录
severity info/error/waring;
设置日志的等级
print-time yes/no;
是否记录事件发生的时间
print-category yes/no;
是否记录事件类型
print-severity yes/no;
是否记录事件的级别
};
category 类别 {通道名称;};
类别 queries,config,default...
};
logging {
channel warning {
file "/usr/local/named/log/dns_warnings.log" versions 3 size 12400k;
severity warning;
print-category yes;
print-severity yes;
print-time yes;
};
channel general_dns {
file "/usr/local/named/log/dns_logs.log" versions 3 size 12400k;
severity info;
print-category yes;
print-severity yes;
print-time yes;
};
category default { warning; };
category queries { general_dns; };
};
阅读(802) | 评论(0) | 转发(0) |