diff --git a/src/main.rs b/src/main.rs index ca6e70c..4f9f01d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -680,7 +680,7 @@ async fn get_dig_result( let name = &dig_query.trim().trim_end_matches(".").to_string(); let idna_name = IdnaName::from_string(&name); if let Some(dns_resolver) = &state.dns_resolvers.get(dns_resolver_name) { - if let Ok(domain_name) = Name::from_str_relaxed(name) { + if let Ok(domain_name) = Name::from_str_relaxed(name.to_owned()+".") { if match_domain_hidden_list(&name, &state.config.dns.hidden_suffixes) { // Try to hide the fact that we didn't do dns resolution at all // We resolve example.org as basic avoidance of timing sidechannels.