From: Wouter Wijngaards Date: Mon, 1 Mar 2010 13:00:00 +0000 (+0000) Subject: Nicer debug output. X-Git-Tag: release-1.4.2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38fe29b9fdaab239cb7ba31d19bc02a9e170eef9;p=thirdparty%2Funbound.git Nicer debug output. git-svn-id: file:///svn/unbound/trunk@1999 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index 95bbefe43..f2725e582 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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. diff --git a/iterator/iterator.c b/iterator/iterator.c index 4a82d6437..32b82dbbf 100644 --- a/iterator/iterator.c +++ b/iterator/iterator.c @@ -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);