pub fn default_resolver() -> &'static DnsResolver
Expand description
Get a reference to the default DNS resolver.
The default resolver can be cheaply cloned and is shared throughout the running process. It is configured to use the system’s DNS configuration.