Function std::net::lookup_addr [] [src]

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

: recent addition

Resolve the given address to a hostname.

This function may perform a DNS query to resolve addr and may also inspect system configuration to resolve the specified address. If the address cannot be resolved, it is returned in string format.