docs(dns): add note about attempts (#1015)

This commit is contained in:
Matthias Seitz
2023-01-24 17:10:22 +01:00
committed by GitHub
parent 01cb6c07df
commit a1ad688c52

View File

@ -48,6 +48,10 @@ where
/// let resolver = DnsResolver::from_system_conf().unwrap();
/// # }
/// ```
///
/// Note: This [Resolver] can send multiple lookup attempts, See also
/// [ResolverOpts](trust_dns_resolver::config::ResolverOpts) which configures 2 attempts (1 retry)
/// by default.
#[derive(Clone)]
pub struct DnsResolver(TokioAsyncResolver);