dns_resolver::recursive

Function get_ip

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

Given a set of RRs and a domain name we’re looking for, follow any CNAMEs in the response and get the address from the final A / AAAA record.