fix trust_negative_responses config option

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-04-16 07:02:13 -07:00 committed by June
parent 160b9afe97
commit b6cf0e6fcf

View file

@ -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);
}