From d32b0504043869fbebcd81dba10c3b7b3f8f3a8a Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Wed, 6 Mar 2024 13:22:02 +0100 Subject: [PATCH] rec: Don't enter wildcard qname's into the cache in the ZoneToCache function --- pdns/recursordist/rec-zonetocache.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pdns/recursordist/rec-zonetocache.cc b/pdns/recursordist/rec-zonetocache.cc index 415933ca4b..46488f43ec 100644 --- a/pdns/recursordist/rec-zonetocache.cc +++ b/pdns/recursordist/rec-zonetocache.cc @@ -403,6 +403,9 @@ void ZoneData::ZoneToCache(const RecZoneToCache::Config& config) d_now = time(nullptr); for (const auto& [key, v] : d_all) { const auto& [qname, qtype] = key; + if (qname.isWildcard()) { + continue; + } switch (qtype) { case QType::NSEC: case QType::NSEC3: -- 2.47.2