From: Wouter Wijngaards Date: Thu, 7 Jun 2007 15:25:24 +0000 (+0000) Subject: lookup cname not in msg cache, but rrset cache. X-Git-Tag: release-0.4~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d43a0817304f18997d7ed610276951f9956287d1;p=thirdparty%2Funbound.git lookup cname not in msg cache, but rrset cache. git-svn-id: file:///svn/unbound/trunk@378 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/services/cache/dns.c b/services/cache/dns.c index 5cba4e6f1..8643f7d0f 100644 --- a/services/cache/dns.c +++ b/services/cache/dns.c @@ -389,22 +389,8 @@ dns_cache_lookup(struct module_env* env, lock_rw_unlock(&e->lock); } - /* see if we have CNAME for this domain */ - k.qtype = LDNS_RR_TYPE_CNAME; - h = query_info_hash(&k); - e = slabhash_lookup(env->msg_cache, h, &k, 0); - if(e) { - struct msgreply_entry* key = (struct msgreply_entry*)e->key; - struct reply_info* data = (struct reply_info*)e->data; - struct dns_msg* msg = tomsg(env, key, data, region, now, - scratch); - if(msg) { - lock_rw_unlock(&e->lock); - return msg; - } - /* could be msg==NULL; due to TTL or not all rrsets available */ - lock_rw_unlock(&e->lock); - } + /* see if we have CNAME for this domain TODO */ + /* or a DNAME exists. Check in RRset cache and synth a message. */ /* construct DS, DNSKEY messages from rrset cache. TODO */