dns_resolver::recursive

Function get_better_ns_names

Source
fn get_better_ns_names(
    rrs: &[ResourceRecord],
    target: &DomainName,
    current_match_count: usize,
) -> Option<(DomainName, HashSet<DomainName>)>
Expand description

Given a set of RRs and a domain name we’re looking for, look for better matching NS RRs (by comparing the current match count). Returns the new matching superdomain and the nameserver hostnames.