From c18218935f5c96b337d00a545b5b54fc4049dad0 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 10 Nov 2004 21:57:35 +0000 Subject: [PATCH] 1754. [bug] We wern't always attempting to query the parent server for the DS records at the zone cut. [RT #12774] --- CHANGES | 4 ++++ lib/dns/resolver.c | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 505fa0cf71..4bc3ab65bf 100644 --- a/CHANGES +++ b/CHANGES @@ -5,6 +5,10 @@ 1760. [bug] Host / net unreachable was not penalising rtt estimates. [RT #12970] +1754. [bug] We wern't always attempting to query the parent + server for the DS records at the zone cut. + [RT #12774] + 1753. [bug] Don't serve a slave zone which has no NS records. [RT #12894] diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index 7512d38523..e0178c1fce 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: resolver.c,v 1.218.2.18.4.46 2004/11/10 21:48:01 marka Exp $ */ +/* $Id: resolver.c,v 1.218.2.18.4.47 2004/11/10 21:57:35 marka Exp $ */ #include @@ -5413,13 +5413,16 @@ resquery_response(isc_task_t *task, isc_event_t *event) { return; } findoptions = 0; + if (dns_rdatatype_atparent(fctx->type)) + findoptions |= DNS_DBFIND_NOEXACT; if ((options & DNS_FETCHOPT_UNSHARED) == 0) name = &fctx->name; else name = &fctx->domain; result = dns_view_findzonecut(fctx->res->view, name, fname, - now, 0, ISC_TRUE, + now, findoptions, + ISC_TRUE, &fctx->nameservers, NULL); if (result != ISC_R_SUCCESS) {