diff --git a/src/dnsmasq_interface.c b/src/dnsmasq_interface.c index cf54a3c5..45d15c1c 100644 --- a/src/dnsmasq_interface.c +++ b/src/dnsmasq_interface.c @@ -1039,23 +1039,10 @@ void _FTL_reply(const unsigned int flags, const char *name, const union all_addr // Get time index const unsigned int timeidx = query->timeidx; - // Check whether this query was blocked - if(strcmp(answer, "(NXDOMAIN)") == 0 || - strcmp(answer, "0.0.0.0") == 0 || - strcmp(answer, "::") == 0) - { - // Mark query as blocked - clientsData* client = getClient(query->clientID, true); - query_blocked(query, domain, client, QUERY_REGEX); - } - else - { - // Answered from a custom (user provided) cache file - counters->cached++; - overTime[timeidx].cached++; - - query->status = QUERY_CACHE; - } + // Answered from a custom (user provided) cache file + counters->cached++; + overTime[timeidx].cached++; + query->status = QUERY_CACHE; // Save reply type and update individual reply counters save_reply_type(flags, addr, query, response);