//! Looking up raw records.
use ToDname;
use Question;
use Future;
use crate;
//------------ lookup_records ------------------------------------------------
/// 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.
+ 'a
where N: ToDname + 'a, Q: + 'a