]> git.ipfire.org Git - thirdparty/bind9.git/commit
add a quick-and-dirty method of debugging a single query
authorEvan Hunt <each@isc.org>
Fri, 15 May 2020 23:37:44 +0000 (16:37 -0700)
committerEvan Hunt <each@isc.org>
Tue, 26 May 2020 07:47:18 +0000 (00:47 -0700)
commit249184e03e1de07cfdc10e28a43ebb1989ebf450
treecf358dabe883a335a08d79366dcb67c34782af55
parent23f2ab45432f6976d957053d1b343509bcc9a936
add a quick-and-dirty method of debugging a single query

when built with "configure --enable-singletrace", named will produce
detailed query logging at the highest debug level for any query with
query ID zero.

this enables monitoring of the progress of a single query by specifying
the QID using "dig +qid=0". the "client" logging category should be set
to a low severity level to suppress logging of other queries. (the
chance of another query using QID=0 at the same time is only 1 in 2^16.)

"--enable-singletrace" turns on "--enable-querytrace" as well, so if the
logging severity is not lowered, all other queries will be logged
verbosely as well. compiling with either of these options will impair
query performance; they should only be turned on when testing or
troubleshooting.
configure.ac
lib/isc/include/isc/log.h
lib/isc/log.c
lib/isc/win32/libisc.def.in
lib/ns/client.c