Function dns_lookup::lookup_host

source ·
pub fn lookup_host(host: &str) -> Result<Vec<IpAddr>>
Expand description

Lookup the address for a given hostname via DNS.

Returns an iterator of IP Addresses, or an io::Error on failure.