From d228fbf3ad86d2402ad822c7c2fec0ee6227ea3e Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sun, 9 Apr 2023 12:36:06 +0200 Subject: [PATCH] Apply the same logic also for reverse lookups (PTR) Signed-off-by: DL6ER --- src/dnsmasq_interface.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dnsmasq_interface.c b/src/dnsmasq_interface.c index 292396cb..e18b4830 100644 --- a/src/dnsmasq_interface.c +++ b/src/dnsmasq_interface.c @@ -2184,6 +2184,10 @@ static void FTL_reply(const unsigned int flags, const char *name, const union al // name = google-public-dns-a.google.com // Hence, isExactMatch is always false + // Set DNSSEC status to INSECURE if it is still unknown + if(query->dnssec == DNSSEC_UNSPECIFIED) + query_set_dnssec(query, DNSSEC_INSECURE); + // Save reply type and update individual reply counters query_set_reply(flags, 0, addr, query, response); }