dns_resolver::recursive

Function candidate_nameservers

Source
fn candidate_nameservers(
    context: &mut RecursiveContext<'_>,
    question: &DomainName,
) -> Option<Nameservers>
Expand description

Get the best nameservers by non-recursively looking them up for the domain and all its superdomains, in order. If no nameservers are found, the root hints are returned.

This corresponds to step 2 of the standard resolver algorithm.