pub async fn lookup_addr<R: Resolver>(
resolv: &R,
addr: IpAddr
) -> Result<FoundAddrs<R>, Error>
Expand description
Resolves the host names of an IP address.
The function will query DNS using the resolver represented by resolv
.
It will query DNS only and not consider any other database the system
may have.
The value returned upon success can be turned into an iterator over
host names via its iter()
method. This is due to lifetime issues.