Query logging

Rob Riepel riepel at luna.stanford.edu
Tue Oct 12 01:47:22 UTC 1999


Scott Bertilson <scott at nts.umn.edu> writes:

>> If I configure a file channel for the "queries" channel, it enables query
>> logging at server startup which is not required and will fill up the file
>> system.
>> 
>> What am I missing? - is there any way to tell the channel / category to
>> start only when query logging is enabled?
> 
>  Yes, we ran into similar problems with 8.2.1...

Here's a patch for 8.2.1 that allows a query log channel w/o turning on
query logging:
 
*** src/bin/named/ns_config.c.orig	Sun Jun 20 16:44:53 1999
--- src/bin/named/ns_config.c	Wed Jun 23 13:49:59 1999
***************
*** 2745,2752 ****
  	 * Special case for query-log, so we can co-exist with the command
  	 * line option and SIGWINCH.
  	 */
! 	if (log_category_is_active(lc, ns_log_queries))
! 		qrylog = 1;
  
  	/*
  	 * Cleanup the old context.
--- 2745,2752 ----
  	 * Special case for query-log, so we can co-exist with the command
  	 * line option and SIGWINCH.
  	 */
! /*  	if (log_category_is_active(lc, ns_log_queries)) */
! /*  		qrylog = 1; */
  
  	/*
  	 * Cleanup the old context.


More information about the bind-users mailing list