Skip to main content

resolve_host_ips

Function resolve_host_ips 

Source
async fn resolve_host_ips(connection: &str, host: &str) -> Result<Vec<IpAddr>>
Expand description

Resolves host to the full list of IP addresses the TCP dial should try, so a host backed by several A/AAAA records can fall back when one is unreachable.

A literal IP address is returned as a single-element list without a DNS lookup; otherwise the hostname is resolved to all of its addresses.