diff --git a/src/blockchain/filter.rs b/src/blockchain/filter.rs index 46e3520..a77a0ab 100644 --- a/src/blockchain/filter.rs +++ b/src/blockchain/filter.rs @@ -234,7 +234,7 @@ impl DnsFilter for BlockchainFilter { if answers.is_empty() && cname.is_some() { answers.push(cname.unwrap()); } - let mut domain_exists = !answers.is_empty(); + let mut domain_exists = !answers.is_empty() || subdomain.is_empty(); if answers.is_empty() { // If there are no records found we search for *.domain.tld record for mut record in data.records {