]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
and printout for these cases too.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 17 Aug 2018 15:09:23 +0000 (15:09 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 17 Aug 2018 15:09:23 +0000 (15:09 +0000)
git-svn-id: file:///svn/unbound/trunk@4862 be551aaa-1e26-0410-a405-d3ace91eadb9

iterator/iterator.c
validator/validator.c

index 1037bcd74e82f25a919a790038308517ee08a446..54bcc887d96c3f698018d30fa33fd72a01947c5c 100644 (file)
@@ -1328,6 +1328,8 @@ processInitRequest(struct module_qstate* qstate, struct iter_qstate* iq,
                /* if from cache, NULL, else insert 'cache IP' len=0 */
                if(qstate->reply_origin)
                        sock_list_insert(&qstate->reply_origin, NULL, 0, qstate->region);
+               if(FLAGS_GET_RCODE(msg->rep->flags) == LDNS_RCODE_SERVFAIL)
+                       errinf(qstate, "SERVFAIL in cache");
                /* it is an answer, response, to final state */
                verbose(VERB_ALGO, "returning answer from cache.");
                iq->response = msg;
index 2f13dc005ced73aae9edda49b7d050eee9990bac..3e9c1ff6c2fcf20edf577f289b631068bead75c7 100644 (file)
@@ -2340,6 +2340,7 @@ processDLVLookup(struct module_qstate* qstate, struct val_qstate* vq,
 
        if(vq->dlv_status == dlv_error) {
                verbose(VERB_QUERY, "failed DLV lookup");
+               errinf(qstate, "failed DLV lookup");
                return val_error(qstate, id);
        } else if(vq->dlv_status == dlv_success) {
                uint8_t* nm;