Nicer debug output.

git-svn-id: file:///svn/unbound/trunk@1999 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2010-03-01 13:00:00 +00:00
parent fcdfcbe82e
commit 38fe29b9fd
2 changed files with 9 additions and 1 deletions

View file

@ -2,6 +2,8 @@
- make install depends on make all. - make install depends on make all.
- Fix 5011 auto-trust-anchor-file initial read to skip RRSIGs. - Fix 5011 auto-trust-anchor-file initial read to skip RRSIGs.
- --enable-checking: enables assertions but does not look nonproduction. - --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 26 February 2010: Wouter
- Fixup prototype for lexer cleanup in daemon code. - Fixup prototype for lexer cleanup in daemon code.

View file

@ -1620,7 +1620,13 @@ processQueryResponse(struct module_qstate* qstate, struct iter_qstate* iq,
if(type == RESPONSE_TYPE_ANSWER) { if(type == RESPONSE_TYPE_ANSWER) {
/* ANSWER type responses terminate the query algorithm, /* ANSWER type responses terminate the query algorithm,
* so they sent on their */ * 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, if(!iter_dns_store(qstate->env, &iq->response->qinfo,
iq->response->rep, 0, qstate->prefetch_leeway)) iq->response->rep, 0, qstate->prefetch_leeway))
return error_response(qstate, id, LDNS_RCODE_SERVFAIL); return error_response(qstate, id, LDNS_RCODE_SERVFAIL);