Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tony Finch
BIND
Commits
abfbedc0
Commit
abfbedc0
authored
May 31, 2018
by
Tony Finch
Committed by
Mark Andrews
Jun 05, 2018
Browse files
Move NSID logging to its own category
It is very verbose, so it is useful to be able to filter it out.
parent
193cc42b
Changes
5
Hide whitespace changes
Inline
Side-by-side
doc/arm/Bv9ARM-book.xml
View file @
abfbedc0
...
...
@@ -6052,7 +6052,7 @@ options {
queries to authoritative name servers during iterative
resolution. If the authoritative server returns an NSID
option in its response, then its contents are logged in
the <command>
resolver
</command> category at level
the <command>
nsid
</command> category at level
<command>info</command>.
The default is <userinput>no</userinput>.
</para>
...
...
doc/arm/logging-categories.xml
View file @
abfbedc0
...
...
@@ -193,6 +193,16 @@
</para>
</entry>
</row>
<row
rowsep=
"0"
>
<entry
colname=
"1"
>
<para><command>
nsid
</command></para>
</entry>
<entry
colname=
"2"
>
<para>
NSID options received from upstream servers.
</para>
</entry>
</row>
<row
rowsep=
"0"
>
<entry
colname=
"1"
>
<para><command>
queries
</command></para>
...
...
lib/dns/include/dns/log.h
View file @
abfbedc0
...
...
@@ -40,6 +40,7 @@ LIBDNS_EXTERNAL_DATA extern isc_logmodule_t dns_modules[];
#define DNS_LOGCATEGORY_SPILL (&dns_categories[15])
#define DNS_LOGCATEGORY_DNSTAP (&dns_categories[16])
#define DNS_LOGCATEGORY_ZONELOAD (&dns_categories[17])
#define DNS_LOGCATEGORY_NSID (&dns_categories[18])
/* Backwards compatibility. */
#define DNS_LOGCATEGORY_GENERAL ISC_LOGCATEGORY_GENERAL
...
...
lib/dns/log.c
View file @
abfbedc0
...
...
@@ -40,6 +40,7 @@ LIBDNS_EXTERNAL_DATA isc_logcategory_t dns_categories[] = {
{
"spill"
,
0
},
{
"dnstap"
,
0
},
{
"zoneload"
,
0
},
{
"nsid"
,
0
},
{
NULL
,
0
}
};
...
...
lib/dns/resolver.c
View file @
abfbedc0
...
...
@@ -6964,7 +6964,7 @@ log_nsid(isc_buffer_t *opt, size_t nsid_len, resquery_t *query,
isc_sockaddr_format
(
&
query
->
addrinfo
->
sockaddr
,
addrbuf
,
sizeof
(
addrbuf
));
isc_log_write
(
dns_lctx
,
DNS_LOGCATEGORY_
RESOLVER
,
isc_log_write
(
dns_lctx
,
DNS_LOGCATEGORY_
NSID
,
DNS_LOGMODULE_RESOLVER
,
level
,
"received NSID %s (
\"
%s
\"
) from %s"
,
buf
,
pbuf
,
addrbuf
);
cleanup:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment