pub type TokioHickoryResolver = HickoryResolver<TokioConnectionProvider>;tokio only.Expand description
A hyper resolver using hickory’s TokioResolver.
Aliased Type§
pub struct TokioHickoryResolver { /* private fields */ }Implementations§
Source§impl TokioHickoryResolver
impl TokioHickoryResolver
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new TokioHickoryResolver with the default config options.
This must be run inside a Tokio runtime context.
Sourcepub fn google() -> Self
pub fn google() -> Self
Create a new TokioHickoryResolver that uses the Google nameservers.
This must be run inside a Tokio runtime context.
Sourcepub fn cloudflare() -> Self
pub fn cloudflare() -> Self
Create a new TokioHickoryResolver that uses the Cloudflare nameservers.
This must be run inside a Tokio runtime context.
Sourcepub fn cloudflare_https() -> Self
Available on crate features https-aws-lc-rs or https-ring only.
pub fn cloudflare_https() -> Self
https-aws-lc-rs or https-ring only.Create a new TokioHickoryResolver that uses the Cloudflare nameservers.
This limits the registered connections to just HTTPS lookups.
This must be run inside a Tokio runtime context.
Sourcepub fn cloudflare_tls() -> Self
Available on crate features tls-aws-lc-rs or tls-ring only.
pub fn cloudflare_tls() -> Self
tls-aws-lc-rs or tls-ring only.Create a new TokioHickoryResolver that uses the Cloudflare nameservers.
This limits the registered connections to just TLS lookups.
This must be run inside a Tokio runtime context.
Sourcepub fn quad9() -> Self
pub fn quad9() -> Self
Create a new TokioHickoryResolver that uses the Quad9 nameservers.
This must be run inside a Tokio runtime context.
Sourcepub fn quad9_https() -> Self
Available on crate features https-aws-lc-rs or https-ring only.
pub fn quad9_https() -> Self
https-aws-lc-rs or https-ring only.Create a new TokioHickoryResolver that uses the Quad9 nameservers.
This limits the registered connections to just HTTPS lookups.
This must be run inside a Tokio runtime context.
Sourcepub fn quad9_tls() -> Self
Available on crate features tls-aws-lc-rs or tls-ring only.
pub fn quad9_tls() -> Self
tls-aws-lc-rs or tls-ring only.Create a new TokioHickoryResolver that uses the Quad9 nameservers.
This limits the registered connections to just TLS lookups.
This must be run inside a Tokio runtime context.
Sourcepub fn with_config_and_options(
config: ResolverConfig,
options: ResolverOpts,
) -> Self
pub fn with_config_and_options( config: ResolverConfig, options: ResolverOpts, ) -> Self
Create a new TokioHickoryResolver with the resolver configuration
options specified.
This must be run inside a Tokio runtime context.
Sourcepub fn from_system_conf() -> Result<Self, ResolveError>
Available on crate feature system-config only.
pub fn from_system_conf() -> Result<Self, ResolveError>
system-config only.Create a new TokioHickoryResolver with the system configuration.
This must be run inside a Tokio runtime context.
§Errors
This method returns an error if loading the system configuration fails.