]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Log the result of each resolver priming attempt
authorMichał Kępień <michal@isc.org>
Wed, 16 Feb 2022 12:26:12 +0000 (13:26 +0100)
committerMichał Kępień <michal@isc.org>
Wed, 16 Feb 2022 12:26:12 +0000 (13:26 +0100)
When a resolver priming attempt completes, the following message is
currently logged:

    resolver priming query complete

This message is identical for both successful and failed priming
attempts.  Consider the following log excerpts:

  - successful priming attempt:

        10-Feb-2022 11:33:11.272 all zones loaded
        10-Feb-2022 11:33:11.272 running
        10-Feb-2022 11:33:19.722 resolver priming query complete

  - failed priming attempt:

        10-Feb-2022 11:33:29.978 all zones loaded
        10-Feb-2022 11:33:29.978 running
        10-Feb-2022 11:33:38.432 timed out resolving '_.org/A/IN': 2001:500:9f::42#53
        10-Feb-2022 11:33:38.522 timed out resolving './NS/IN': 2001:500:9f::42#53
        10-Feb-2022 11:33:42.132 timed out resolving '_.org/A/IN': 2001:500:12::d0d#53
        10-Feb-2022 11:33:42.285 timed out resolving './NS/IN': 2001:500:12::d0d#53
        10-Feb-2022 11:33:44.685 resolver priming query complete

Include the result of each priming attempt in the relevant log message
to give the administrator better insight into named's resolver priming
process.

lib/dns/resolver.c

index 0b5633f9fd8a7add17d4da10975e6203ba20754c..b558485157ca56145dde3a17523db3539be23baf 100644 (file)
@@ -10231,7 +10231,8 @@ prime_done(isc_task_t *task, isc_event_t *event) {
 
        isc_log_write(dns_lctx, DNS_LOGCATEGORY_RESOLVER,
                      DNS_LOGMODULE_RESOLVER, ISC_LOG_INFO,
-                     "resolver priming query complete");
+                     "resolver priming query complete: %s",
+                     isc_result_totext(fevent->result));
 
        UNUSED(task);