diff --git a/CHANGES b/CHANGES index cc4f9972b4..fc2d1f5018 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +3830. [func] When query logging is enabled, log query errors at + the same level ('info') as the queries themselves. + [RT #35844] + 3829. [func] "dig +ttlunits" causes dig to print TTL values with time-unit suffixes: w, d, h, m, s for weeks, days, hours, minutes, and seconds. (Thanks diff --git a/bin/named/query.c b/bin/named/query.c index 5d16961e2b..9b1fcbf609 100644 --- a/bin/named/query.c +++ b/bin/named/query.c @@ -257,6 +257,9 @@ query_error(ns_client_t *client, isc_result_t result, int line) { break; } + if (ns_g_server->log_queries) + loglevel = ISC_LOG_INFO; + log_queryerror(client, result, line, loglevel); ns_client_error(client, result);