Function dns_lookup::lookup_addr

source ·
pub fn lookup_addr(addr: &IpAddr) -> Result<String>
Expand description

Lookup the hostname of a given IP Address via DNS.

Returns the hostname as a String, or an io::Error on failure or if the hostname cannot be determined.