diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2018-05-12 11:56:38 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2018-05-12 11:56:38 +0000 |
| commit | 197f1a0fe3e81cde0cd25a3a1f37ebedf9a99488 (patch) | |
| tree | 9a121ad4cef31a32608c065400c31246d549c0dc /cachedb | |
| parent | b5c63b395d5df7ff6ee4d41a7dfecd938d894037 (diff) | |
Notes
Diffstat (limited to 'cachedb')
| -rw-r--r-- | cachedb/cachedb.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cachedb/cachedb.c b/cachedb/cachedb.c index d07d76973fd2..80bdc380f3f6 100644 --- a/cachedb/cachedb.c +++ b/cachedb/cachedb.c @@ -568,14 +568,17 @@ cachedb_intcache_lookup(struct module_qstate* qstate) msg = dns_cache_lookup(qstate->env, qstate->qinfo.qname, qstate->qinfo.qname_len, qstate->qinfo.qtype, qstate->qinfo.qclass, qstate->query_flags, - qstate->region, qstate->env->scratch); + qstate->region, qstate->env->scratch, + 1 /* no partial messages with only a CNAME */ + ); if(!msg && qstate->env->neg_cache) { /* lookup in negative cache; may result in * NOERROR/NODATA or NXDOMAIN answers that need validation */ msg = val_neg_getmsg(qstate->env->neg_cache, &qstate->qinfo, qstate->region, qstate->env->rrset_cache, qstate->env->scratch_buffer, - *qstate->env->now, 1/*add SOA*/, NULL); + *qstate->env->now, 1/*add SOA*/, NULL, + qstate->env->cfg); } if(!msg) return 0; |
