Changeset 1475
- Timestamp:
- 12/27/09 15:22:45 (3 months ago)
- Location:
- trunk/pdns/pdns
- Files:
-
- 2 modified
-
lwres.cc (modified) (2 diffs)
-
syncres.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/lwres.cc
r1472 r1475 58 58 Never throws! 59 59 */ 60 int asyncresolve(const ComboAddress& ip, const string& domain, int type, bool doTCP, bool sendRDQuery, int EDNS0Level, struct timeval* now, LWResult *lwr)60 int asyncresolve(const ComboAddress& ip, const string& domain, int type, bool doTCP, bool sendRDQuery, int EDNS0Level, struct timeval* now, LWResultResult *lwr) 61 61 { 62 62 int len; … … 184 184 for(MOADNSParser::answers_t::const_iterator i=mdp.d_answers.begin(); i!=mdp.d_answers.end(); ++i) { 185 185 DNSResourceRecord rr; 186 rr.priority = 0; 186 187 rr.qtype=i->first.d_type; 187 188 rr.qname=i->first.d_label; -
trunk/pdns/pdns/syncres.cc
r1473 r1475 957 957 if(rr.qtype.getCode() == QType::NS) // people fiddle with the case 958 958 rr.content=toLower(rr.content); // this must stay! (the cache can't be case-insensitive on the RHS of records) 959 959 960 tcache[make_pair(i->qname,i->qtype)].insert(rr); 960 961 } … … 1030 1031 lwr.d_rcode==RCode::NoError) { 1031 1032 LOG<<prefix<<qname<<": got negative caching indication for '"<< (qname+"|"+i->qtype.getName()+"'") <<endl; 1032 ret.push_back(*i); 1033 if(!newtarget.empty()) 1034 ret.push_back(*i); 1033 1035 1034 1036 NegCacheEntry ne;