fn init_dns_resolver() -> Result<trust_dns_resolver::TokioAsyncResolver, String> {
    match trust_dns_resolver::TokioAsyncResolver::tokio_from_system_conf() {
        Ok(x) => Ok(x),
        Err(_) => Err("Could not build dns resolver".to_string()),
    }
}
/// Function to initialize DNS resolver.
Function to initialize DNS resolver.
Function to initialize DNS resolver .
fn init_dns_resolver() -> Result<trust_dns_resolver::TokioAsyncResolver, String> {
    match trust_dns_resolver::TokioAsyncResolver::tokio_from_system_conf() {
        Ok(x) => Ok(x),
        Err(_) => Err("Could not build dns resolver".to_string()),
    }
}
fn init_dns_resolver ( ) -> Result < trust_dns_resolver :: TokioAsyncResolver , String > { match trust_dns_resolver :: TokioAsyncResolver :: tokio_from_system_conf ( ) { Ok ( x ) => Ok ( x ) , Err ( _ ) => Err ( " " . to_string ( ) ) , } }
Function to initialize DNS resolver.
Function to initialize DNS resolver .