]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
lookup cname not in msg cache, but rrset cache.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 7 Jun 2007 15:25:24 +0000 (15:25 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 7 Jun 2007 15:25:24 +0000 (15:25 +0000)
git-svn-id: file:///svn/unbound/trunk@378 be551aaa-1e26-0410-a405-d3ace91eadb9

services/cache/dns.c

index 5cba4e6f119a22f5cd34a358e49256936542d98d..8643f7d0f7c2a8e2d9f8367a32fc26eebea53cb5 100644 (file)
@@ -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 */