Permalink
Browse files

accept ANY responses during recursive forwarding, thanks Jan-Piet Mens

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@3116 d19b8d6e-7fed-0310-83ef-9ca221ded41b
  • Loading branch information...
1 parent 1917360 commit 450292c01f9b35f7ff99abcf5a13ae731f58bc2d @Habbie Habbie committed Mar 11, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 pdns/syncres.cc
View
@@ -1053,10 +1053,10 @@ int SyncRes::doResolveAt(set<string, CIStringCompare> nameservers, string auth,
ret.push_back(*i);
newtarget=i->content;
}
- // for ANY answers we *must* have an authoritive answer
+ // for ANY answers we *must* have an authoritive answer, unless we are forwarding recursively
else if(i->d_place==DNSResourceRecord::ANSWER && pdns_iequals(i->qname, qname) &&
(
- i->qtype==qtype || (lwr.d_aabit && (qtype==QType(QType::ANY) || magicAddrMatch(qtype, i->qtype) ) )
+ i->qtype==qtype || (lwr.d_aabit && (qtype==QType(QType::ANY) || magicAddrMatch(qtype, i->qtype) ) ) || sendRDQuery
)
)
{

0 comments on commit 450292c

Please sign in to comment.