在named中设置能够记录每一次查询DNS服务器的记录

在named中设置能够记录每一次查询DNS服务器的记录。
在/etc/named.conf 中加入如下内容:


logging{

channel "bind_log" {

file "/var/log/named/bind.log" versions 3 size 25m;

severity info;

print-time yes;

print-severity yes;

print-category yes;

};

channel "query_log" {

file "/var/log/named/query.log" versions 3 size 25m;

severity info;

print-time yes;

print-category yes;

};

category lame-servers { null; };

category queries { "query_log"; };

category default{ "bind_log"; };

};

This entry was posted in DNS and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *