How to configure query logging for selected zones

Mark_Andrews at isc.org Mark_Andrews at isc.org
Tue Feb 10 00:18:12 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?

	No.  It should be easy to extract the entries from the
	log.
 
> Roy Hills
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark.Andrews at isc.org


More information about the bind-users mailing list