dns_resolver::recursive

Function resolve_with_nameserver_response

Source
fn resolve_with_nameserver_response<'a, 'life0, 'life1, 'async_recursion>(
    context: &'life0 mut RecursiveContext<'a>,
    combined_rrs: Vec<ResourceRecord>,
    nameserver_response: NameserverResponse,
    question: &'life1 Question,
) -> Pin<Box<dyn Future<Output = Result<Result<ResolvedRecord, ResolutionError>, Nameservers>> + Send + 'async_recursion>>
where 'life0: 'async_recursion, 'life1: 'async_recursion,
Expand description

Helper function for answering a question given a response from an upstream nameserver: this will only do further querying if the response is a CNAME.