Disabled domain search as it caused problems

This commit is contained in:
Slatian
2023-08-07 21:40:22 +02:00
parent 2fe1b69174
commit 231e46a688
2 changed files with 7 additions and 11 deletions

View File

@ -103,16 +103,10 @@ impl DnsResolverConfig {
bind_addr: self.bind_address,
});
}
for search in &self.search {
if let Ok(name) = Name::from_str_relaxed(search) {
resolver.add_search(name);
}
}
for search in additional_search {
if let Ok(name) = Name::from_str_relaxed(search) {
resolver.add_search(name);
}
}
// Not configuring domain search here because searching
// on the resolver level is a bad idea unless we are
// taling about the system resolver which we
// can't tell what to do (which is good!)
return resolver;
}
}