Function domain::resolv::lookup::records::lookup_records[][src]

pub fn lookup_records<N>(
    resolver: Resolver,
    name: N,
    rtype: Rtype,
    class: Class
) -> LookupRecords where
    N: AsRef<DNameSlice>, 

Creates a future that looks up DNS records.

The future will use the given resolver to perform a DNS query for the records of type rtype associated with name in class. This differs from calling resolv.query() directly in that it can treat relative names. In this case, the resolver configuration is considered to translate the name into a series of absolute names. If you want to find out the name that resulted in a successful answer, you can look at the query in the resulting message.