Index: /trunk/pdns/pdns/packethandler.cc =================================================================== --- /trunk/pdns/pdns/packethandler.cc (revision 1079) +++ /trunk/pdns/pdns/packethandler.cc (revision 1081) @@ -399,6 +399,8 @@ } } - if(hits && !found && !rfound && shortcut ) // we found matching qnames but not a qtype + if(hits && !found && !rfound && shortcut ) { // we found matching qnames but not a qtype + DLOG(L<<"Found matching qname, but not the qtype"<clearRecords(); DLOG(L<<"There is some data, but not of the correct type, adding SOA for NXRECORDSET"<d.rd && d_doRecursion && d_doWildcards) { + if(mret != 2 && p->d.rd && d_doRecursion && d_doWildcards) { int res=doWildcardRecords(p,r,target); if(res) { // had a result