mirror of
https://github.com/isc-projects/bind9.git
synced 2026-07-15 22:52:51 -04:00
[9.20] fix: usr: Log dropped or slipped responses in the query-errors category
Responses which were dropped or slipped because of RRL (Response Rate Limiting) were logged in the ``rate-limit`` category instead of the ``query-errors`` category, as documented in ARM. This has been fixed. Closes #5388 Backport of MR !10676 Merge branch 'backport-5388-rrl-log-category-fix-9.20' into 'bind-9.20' See merge request isc-projects/bind9!10725
This commit is contained in:
commit
47470b586d
2 changed files with 5 additions and 4 deletions
|
|
@ -916,10 +916,10 @@ ns_client_error(ns_client_t *client, isc_result_t result) {
|
|||
sizeof(log_buf));
|
||||
if (rrl_result != DNS_RRL_RESULT_OK) {
|
||||
/*
|
||||
* Log dropped errors in the query category
|
||||
* Log dropped errors in the query-errors category
|
||||
* so that they are not lost in silence.
|
||||
* Starts of rate-limited bursts are logged in
|
||||
* NS_LOGCATEGORY_RRL.
|
||||
* DNS_LOGCATEGORY_RRL.
|
||||
*/
|
||||
if (wouldlog) {
|
||||
ns_client_log(client,
|
||||
|
|
|
|||
|
|
@ -7236,7 +7236,7 @@ query_checkrrl(query_ctx_t *qctx, isc_result_t result) {
|
|||
wouldlog, log_buf, sizeof(log_buf));
|
||||
if (rrl_result != DNS_RRL_RESULT_OK) {
|
||||
/*
|
||||
* Log dropped or slipped responses in the query
|
||||
* Log dropped or slipped responses in the query-errors
|
||||
* category so that requests are not silently lost.
|
||||
* Starts of rate-limited bursts are logged in
|
||||
* DNS_LOGCATEGORY_RRL.
|
||||
|
|
@ -7246,7 +7246,8 @@ query_checkrrl(query_ctx_t *qctx, isc_result_t result) {
|
|||
* with other truncated responses in RespTruncated.
|
||||
*/
|
||||
if (wouldlog) {
|
||||
ns_client_log(qctx->client, DNS_LOGCATEGORY_RRL,
|
||||
ns_client_log(qctx->client,
|
||||
NS_LOGCATEGORY_QUERY_ERRORS,
|
||||
NS_LOGMODULE_QUERY,
|
||||
DNS_RRL_LOG_DROP, "%s", log_buf);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue