Make hickory system_conf error more useful. (resolves #179)
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
ac3ceb1b95
commit
c3bc8c14f7
1 changed files with 4 additions and 2 deletions
|
|
@ -81,8 +81,10 @@ impl Resolver {
|
|||
|
||||
fn configure(server: &Arc<Server>) -> Result<(ResolverConfig, ResolverOpts)> {
|
||||
let config = &server.config;
|
||||
let (sys_conf, opts) = hickory_resolver::system_conf::read_system_conf()
|
||||
.map_err(|e| err!(error!("Failed to configure DNS resolver from system: {e}")))?;
|
||||
let (sys_conf, opts) =
|
||||
hickory_resolver::system_conf::read_system_conf().map_err(|e| {
|
||||
err!(error!("Failed to configure DNS resolver from `/etc/resolv.conf': {e}"))
|
||||
})?;
|
||||
|
||||
let mut conf = ResolverConfig::new();
|
||||
if let Some(domain) = sys_conf.domain() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue