This commit is contained in:
12
named.conf
12
named.conf
@@ -17,6 +17,9 @@ options {
|
|||||||
// Disable recursion (authoritative only)
|
// Disable recursion (authoritative only)
|
||||||
recursion no;
|
recursion no;
|
||||||
|
|
||||||
|
// Enable query logging
|
||||||
|
querylog yes;
|
||||||
|
|
||||||
// Global notification and transfer settings
|
// Global notification and transfer settings
|
||||||
notify yes;
|
notify yes;
|
||||||
also-notify {
|
also-notify {
|
||||||
@@ -63,7 +66,16 @@ logging {
|
|||||||
print-category yes;
|
print-category yes;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
channel query_log {
|
||||||
|
file "/var/log/named/queries.log" versions 3 size 10m;
|
||||||
|
severity info;
|
||||||
|
print-time yes;
|
||||||
|
print-severity yes;
|
||||||
|
print-category yes;
|
||||||
|
};
|
||||||
|
|
||||||
category default { default_log; };
|
category default { default_log; };
|
||||||
|
category queries { query_log; };
|
||||||
category xfer-in { transfer_log; };
|
category xfer-in { transfer_log; };
|
||||||
category xfer-out { transfer_log; };
|
category xfer-out { transfer_log; };
|
||||||
category notify { transfer_log; };
|
category notify { transfer_log; };
|
||||||
|
|||||||
Reference in New Issue
Block a user