dns_resolver::recursive

Function resolve_hostname_to_ip

Source
async fn resolve_hostname_to_ip<'a>(
    context: &mut RecursiveContext<'a>,
    resolve_locally: bool,
    hostname: DomainName,
) -> Option<IpAddr>
Expand description

Resolve a hostname into an IP address, optionally only doing local resolution.