[][src]Function domain_resolv::lookup::addr::lookup_addr

pub async fn lookup_addr<R: Resolver, '_>(
    resolv: &'_ R,
    addr: IpAddr
) -> Result<FoundAddrs<R>, Error>

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.