From: Mark Andrews Date: Tue, 19 Feb 2002 06:16:36 +0000 (+0000) Subject: Don't mark a server as not supporting a EDNS on SERVFAIL. There are too X-Git-Tag: v9.0.1^2~8518 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=3023a2fb9d18e414efa8f69531f7ca208d942fe8;p=thirdparty%2Fbind9.git Don't mark a server as not supporting a EDNS on SERVFAIL. There are too many other potential causes. --- diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index 53089cc9d0c..afad1ab9657 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: resolver.c,v 1.238 2002/02/19 00:48:21 marka Exp $ */ +/* $Id: resolver.c,v 1.239 2002/02/19 06:16:36 marka Exp $ */ #include @@ -4313,9 +4313,10 @@ resquery_response(isc_task_t *task, isc_event_t *event) { /* * Remember that they don't like EDNS0. */ - dns_adb_changeflags(fctx->adb, query->addrinfo, - DNS_FETCHOPT_NOEDNS0, - DNS_FETCHOPT_NOEDNS0); + if (message->rcode != dns_rcode_servfail) + dns_adb_changeflags(fctx->adb, query->addrinfo, + DNS_FETCHOPT_NOEDNS0, + DNS_FETCHOPT_NOEDNS0); } else if (message->rcode == dns_rcode_formerr) { if (ISFORWARDER(query->addrinfo)) { /*