dns_resolver::recursive

Function get_record

Source
fn get_record<'a>(
    rrs: &'a [ResourceRecord],
    target: &DomainName,
    rtype: RecordType,
) -> Option<&'a ResourceRecord>
Expand description

Given a set of RRs and a domain we’re looking for, return the record we’re looking for (if any).

Unlike get_ip this does not follow CNAMEs.