2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-01 06:55:30 +00:00

2744. [func] Log if a query was over TCP. [RT #19961]

This commit is contained in:
Mark Andrews
2009-11-03 04:39:41 +00:00
parent 90065a6881
commit 9d856845d6
3 changed files with 12 additions and 7 deletions

View File

@@ -1,3 +1,5 @@
2744. [func] Log if a query was over TCP. [RT #19961]
2743. [bug] RRSIG could be incorrectly set in the NSEC3 record 2743. [bug] RRSIG could be incorrectly set in the NSEC3 record
for a insecure delegation. for a insecure delegation.

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: query.c,v 1.330 2009/10/26 23:47:35 tbox Exp $ */ /* $Id: query.c,v 1.331 2009/11/03 04:39:41 marka Exp $ */
/*! \file */ /*! \file */
@@ -5073,10 +5073,12 @@ log_query(ns_client_t *client, unsigned int flags, unsigned int extflags) {
isc_netaddr_format(&client->destaddr, onbuf, sizeof(onbuf)); isc_netaddr_format(&client->destaddr, onbuf, sizeof(onbuf));
ns_client_log(client, NS_LOGCATEGORY_QUERIES, NS_LOGMODULE_QUERY, ns_client_log(client, NS_LOGCATEGORY_QUERIES, NS_LOGMODULE_QUERY,
level, "query: %s %s %s %s%s%s%s%s (%s)", namebuf, level, "query: %s %s %s %s%s%s%s%s%s (%s)", namebuf,
classname, typename, WANTRECURSION(client) ? "+" : "-", classname, typename, WANTRECURSION(client) ? "+" : "-",
(client->signer != NULL) ? "S": "", (client->signer != NULL) ? "S": "",
(client->opt != NULL) ? "E" : "", (client->opt != NULL) ? "E" : "",
((client->attributes & NS_CLIENTATTR_TCP) != 0) ?
"T" : "",
((extflags & DNS_MESSAGEEXTFLAG_DO) != 0) ? "D" : "", ((extflags & DNS_MESSAGEEXTFLAG_DO) != 0) ? "D" : "",
((flags & DNS_MESSAGEFLAG_CD) != 0) ? "C" : "", ((flags & DNS_MESSAGEFLAG_CD) != 0) ? "C" : "",
onbuf); onbuf);

View File

@@ -18,7 +18,7 @@
- PERFORMANCE OF THIS SOFTWARE. - PERFORMANCE OF THIS SOFTWARE.
--> -->
<!-- File: $Id: Bv9ARM-book.xml,v 1.440 2009/10/26 23:14:53 each Exp $ --> <!-- File: $Id: Bv9ARM-book.xml,v 1.441 2009/11/03 04:39:41 marka Exp $ -->
<book xmlns:xi="http://www.w3.org/2001/XInclude"> <book xmlns:xi="http://www.w3.org/2001/XInclude">
<title>BIND 9 Administrator Reference Manual</title> <title>BIND 9 Administrator Reference Manual</title>
@@ -4411,10 +4411,11 @@ category notify { null; };
class and type. Next it reports whether the class and type. Next it reports whether the
Recursion Desired flag was set (+ if set, - Recursion Desired flag was set (+ if set, -
if not set), if the query was signed (S), if not set), if the query was signed (S),
EDNS was in use (E), if DO (DNSSEC Ok) was EDNS was in use (E), if TCP was used (T), if
set (D), or if CD (Checking Disabled) was set DO (DNSSEC Ok) was set (D), or if CD (Checking
(C). After this the destination address the Disabled) was set (C). After this the
query was sent to is reported. destination address the query was sent to is
reported.
</para> </para>
<para> <para>