Logging views separately

JINMEI Tatuya / 神明達哉 Jinmei_Tatuya at isc.org
Thu Apr 10 17:40:44 UTC 2008


At Tue, 8 Apr 2008 19:12:39 -0400,
CB <bdyslm at gmail.com> wrote:

> Does anyone know if its possible to log queries and gather stats separately
> for different views/horizons? An an example internal vs external queries?

Do you mean showing the view name in query logs?  If so, I don't think
it's possible, from code inspection:

	ns_client_log(client, NS_LOGCATEGORY_QUERIES, NS_LOGMODULE_QUERY,
		      level, "query: %s %s %s %s%s%s%s%s", namebuf, classname,
		      typename, WANTRECURSION(client) ? "+" : "-",
		      (client->signer != NULL) ? "S": "",
		      (client->opt != NULL) ? "E" : "",
		      ((extflags & DNS_MESSAGEEXTFLAG_DO) != 0) ? "D" : "",
		      ((flags & DNS_MESSAGEFLAG_CD) != 0) ? "C" : "");

---
JINMEI, Tatuya
Internet Systems Consortium, Inc.


More information about the bind-users mailing list