Function dns_lookup::lookup_addr [] [src]

pub fn lookup_addr(addr: &IpAddr) -> Result<String>

Lookup the hostname of a given IP Address via DNS.

Returns the hostname as a String, or an io::Error on failure.