From: ian Date: Wed, 28 Jun 2000 00:02:40 +0000 (+0000) Subject: + * Referrals with RD+RA set, or RCODE=Refused, don't generate warnings, X-Git-Tag: rel-adns-0-9~7 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=adns.git;a=commitdiff_plain;h=d00d4b99046ceb395e4ca22c97cd8aa0942f115a + * Referrals with RD+RA set, or RCODE=Refused, don't generate warnings, @@ -23,6 +23,8 @@ + * Referrals with RD+RA set, or RCODE=Refused, don't generate warnings, + just debug messages. BIND does this kind of thing all the time. --- diff --git a/changelog b/changelog index 5b54121..ccdfb63 100644 --- a/changelog +++ b/changelog @@ -23,6 +23,8 @@ adns (0.9) unstable; urgency=high * m1test script can invoke `hrecord' differently. * regress/output-.report file contains more useful info. * TODO list and other docs updated slightly. + * Referrals with RD+RA set, or RCODE=Refused, don't generate warnings, + just debug messages. BIND does this kind of thing all the time. -- diff --git a/src/reply.c b/src/reply.c index fbafb82..bda52a9 100644 --- a/src/reply.c +++ b/src/reply.c @@ -126,7 +126,7 @@ void adns__procdgram(adns_state ads, const byte *dgram, int dglen, if (qu) adns__query_fail(qu,adns_s_rcodenotimplemented); return; case rcode_refused: - adns__warn(ads,serv,qu,"server refused our query"); + adns__debug(ads,serv,qu,"server refused our query"); if (qu) adns__query_fail(qu,adns_s_rcoderefused); return; default: @@ -287,7 +287,7 @@ void adns__procdgram(adns_state ads, const byte *dgram, int dglen, if (!flg_rd) adns__diag(ads,serv,qu,"server thinks we didn't ask for recursive lookup"); else - adns__diag(ads,serv,qu,"server claims to do recursion, but gave us a referral"); + adns__debug(ads,serv,qu,"server claims to do recursion, but gave us a referral"); adns__query_fail(qu,adns_s_invalidresponse); } return;