resolver defaults to error for everything except NoRecordsFound.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
906057dd8d
commit
f273e8feb5
1 changed files with 5 additions and 5 deletions
|
@ -421,16 +421,16 @@ fn handle_resolve_error(e: &ResolveError) -> Result<()> {
|
||||||
use hickory_resolver::error::ResolveErrorKind;
|
use hickory_resolver::error::ResolveErrorKind;
|
||||||
|
|
||||||
match *e.kind() {
|
match *e.kind() {
|
||||||
ResolveErrorKind::Io {
|
ResolveErrorKind::NoRecordsFound {
|
||||||
..
|
..
|
||||||
} => {
|
} => {
|
||||||
error!("{e}");
|
|
||||||
Err(Error::Error(e.to_string()))
|
|
||||||
},
|
|
||||||
_ => {
|
|
||||||
debug_error!("{e}");
|
debug_error!("{e}");
|
||||||
Ok(())
|
Ok(())
|
||||||
},
|
},
|
||||||
|
_ => {
|
||||||
|
error!("{e}");
|
||||||
|
Err(Error::Error(e.to_string()))
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue