]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Nicer debug output.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 1 Mar 2010 13:00:00 +0000 (13:00 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 1 Mar 2010 13:00:00 +0000 (13:00 +0000)
git-svn-id: file:///svn/unbound/trunk@1999 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
iterator/iterator.c

index 95bbefe436a65fbef044e8198514e38778dd0606..f2725e5828537aed9ea0200a5f72f9fa233a3160 100644 (file)
@@ -2,6 +2,8 @@
        - make install depends on make all.
        - Fix 5011 auto-trust-anchor-file initial read to skip RRSIGs.
        - --enable-checking: enables assertions but does not look nonproduction.
+       - nicer VERB_DETAIL (verbosity 2, unbound-host -d) output, with
+         nxdomain and nodata distinguished.
 
 26 February 2010: Wouter
        - Fixup prototype for lexer cleanup in daemon code.
index 4a82d64377f8f93b969a464d94f034680a04665b..32b82dbbf6088af232dc83090c6e15031cf83ed2 100644 (file)
@@ -1620,7 +1620,13 @@ processQueryResponse(struct module_qstate* qstate, struct iter_qstate* iq,
        if(type == RESPONSE_TYPE_ANSWER) {
                /* ANSWER type responses terminate the query algorithm, 
                 * so they sent on their */
-               verbose(VERB_DETAIL, "query response was ANSWER");
+               if(verbosity >= VERB_DETAIL) {
+                       verbose(VERB_DETAIL, "query response was %s",
+                               FLAGS_GET_RCODE(iq->response->rep->flags)
+                               ==LDNS_RCODE_NXDOMAIN?"NXDOMAIN ANSWER":
+                               (iq->response->rep->an_numrrsets?"ANSWER":
+                               "nodata ANSWER"));
+               }
                if(!iter_dns_store(qstate->env, &iq->response->qinfo,
                        iq->response->rep, 0, qstate->prefetch_leeway))
                        return error_response(qstate, id, LDNS_RCODE_SERVFAIL);