From b6cf0e6fcffb883703d5337a7818730753da6725 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 16 Apr 2024 07:02:13 -0700 Subject: [PATCH] fix trust_negative_responses config option Signed-off-by: Jason Volk --- src/service/globals/resolver.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/service/globals/resolver.rs b/src/service/globals/resolver.rs index 55ad35d0..475edd52 100644 --- a/src/service/globals/resolver.rs +++ b/src/service/globals/resolver.rs @@ -52,9 +52,7 @@ impl Resolver { for sys_conf in sys_conf.name_servers() { let mut ns = sys_conf.clone(); - if config.query_all_nameservers { - ns.trust_negative_responses = true; - } + ns.trust_negative_responses = !config.query_all_nameservers; conf.add_name_server(ns); }