From 15e56a210c0f65c255b8415cca126badb3e5626c Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Mon, 27 Oct 2025 16:30:39 +0100 Subject: [PATCH] activate query log --- named.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/named.conf b/named.conf index 9feac03..1e9b069 100644 --- a/named.conf +++ b/named.conf @@ -17,6 +17,9 @@ options { // Disable recursion (authoritative only) recursion no; + // Enable query logging + querylog yes; + // Global notification and transfer settings notify yes; also-notify { @@ -63,7 +66,16 @@ logging { 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 queries { query_log; }; category xfer-in { transfer_log; }; category xfer-out { transfer_log; }; category notify { transfer_log; };