From: bert hubert Date: Sun, 5 Jun 2016 19:13:10 +0000 (+0200) Subject: make sure we can resolve 'x.com' if we have auth NS records loaded for x.com X-Git-Tag: rec-4.0.0-rc1~5^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=39eb8051eda493a1eead665d1f062e551bb72d73;p=pdns make sure we can resolve 'x.com' if we have auth NS records loaded for x.com --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index cf51b3f31..9b8a02727 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -207,6 +207,11 @@ bool SyncRes::doOOBResolve(const DNSName &qname, const QType &qtype, vectord_type==qtype.getCode() || ziter->d_type==QType::CNAME) // let rest of nameserver do the legwork on this one ret.push_back(*ziter); + else if(ziter->d_type == QType::NS) { // we hit a delegation point! + DNSRecord dr=*ziter; + dr.d_place=DNSResourceRecord::AUTHORITY; + ret.push_back(dr); + } } if(!ret.empty()) { LOG(prefix<