From 61f2d89ef1e2624224a3106c35d9f4b8729035ce Mon Sep 17 00:00:00 2001 From: Revertron Date: Thu, 23 Oct 2025 22:48:48 +0200 Subject: [PATCH] Fixed GLUE records return on NS requests. --- src/blockchain/filter.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/blockchain/filter.rs b/src/blockchain/filter.rs index 0a85c65..106647b 100644 --- a/src/blockchain/filter.rs +++ b/src/blockchain/filter.rs @@ -281,9 +281,12 @@ impl DnsFilter for BlockchainFilter { }; // Check if this domain has NS records and needs to resolve all records through them - let (has_ns, result) = Self::resolve_by_ns(qname, qtype, &top_domain, &data, recursive); - if has_ns { - return result; + // But skip this if we're querying for NS records themselves - return them directly + if qtype != QueryType::NS { + let (has_ns, result) = Self::resolve_by_ns(qname, qtype, &top_domain, &data, recursive); + if has_ns { + return result; + } } let mut answers: Vec = Vec::new();