How to configure query logging for selected zones

Roy Hills royhills at hotmail.com
Sat Feb 7 17:19:55 UTC 2004


I want to be able to turn on query logging, but only for selected
zones.

Currently, I'm doing query logging using the "querylog" channel, but
that logs all queries which I don't want.

I'm running bind 9.2.1 on Debian Linux.  My current query logging
entry in named.conf is:

logging {
        channel "querylog" {
           file "querylog.log" versions 99 size 100M;
           severity info;
           print-time yes;
           print-category yes;
        };

I've tried putting the querylog statement within the zone statement
for the zones I want to log, but bind rejects that syntax.

Is there any way to log queries for selected zones only?

Roy Hills



More information about the bind-users mailing list