summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/resolve/resolved-dns-cache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-cache.c b/src/resolve/resolved-dns-cache.c
index 3abb0374b6..241187dd51 100644
--- a/src/resolve/resolved-dns-cache.c
+++ b/src/resolve/resolved-dns-cache.c
@@ -636,7 +636,9 @@ int dns_cache_lookup(DnsCache *c, DnsResourceKey *key, int *rcode, DnsAnswer **r
*ret = NULL;
*rcode = DNS_RCODE_SUCCESS;
- return !bitmap_isset(nsec->nsec.types, key->type);
+ return !bitmap_isset(nsec->nsec.types, key->type) &&
+ !bitmap_isset(nsec->nsec.types, DNS_TYPE_CNAME) &&
+ !bitmap_isset(nsec->nsec.types, DNS_TYPE_DNAME);
}
log_debug("%s cache hit for %s",