Skip to main content

resolve_host_ip

Function resolve_host_ip 

Source
pub async fn resolve_host_ip(host: &str) -> Result<IpAddr>
Expand description

Resolve a host string to an IP address.

  • Accepts literal IPv4/IPv6 strings.
  • Otherwise resolves A first, then AAAA.