resolver defaults to error for everything except NoRecordsFound.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-04-22 01:32:43 -07:00 committed by June
parent 906057dd8d
commit f273e8feb5

View file

@ -421,16 +421,16 @@ fn handle_resolve_error(e: &ResolveError) -> Result<()> {
use hickory_resolver::error::ResolveErrorKind;
match *e.kind() {
ResolveErrorKind::Io {
ResolveErrorKind::NoRecordsFound {
..
} => {
error!("{e}");
Err(Error::Error(e.to_string()))
},
_ => {
debug_error!("{e}");
Ok(())
},
_ => {
error!("{e}");
Err(Error::Error(e.to_string()))
},
}
}