Tweak to logging.

When a cached answer is too big, log

cached reply is truncated

and not

config reply is truncated
This commit is contained in:
Simon Kelley
2025-02-03 15:26:55 +00:00
parent 046bfa2af0
commit 1f84cde024

View File

@@ -2364,7 +2364,7 @@ size_t answer_request(struct dns_header *header, char *limit, size_t qlen,
if (!(ansp = skip_questions(header, qlen))) if (!(ansp = skip_questions(header, qlen)))
return 0; /* bad packet */ return 0; /* bad packet */
anscount = nscount = addncount = 0; anscount = nscount = addncount = 0;
log_query(F_CONFIG, "reply", NULL, "truncated", 0); log_query(0, "reply", NULL, "truncated", 0);
} }
if (nxdomain) if (nxdomain)