Module recursive

Source

Structs§

RecursiveContextInner

Enums§

NameserverResponse
A response from a remote nameserver

Functions§

candidate_nameservers πŸ”’
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.
follow_cnames πŸ”’
Given a set of RRs and a domain name we’re looking for, follow CNAMEs in the response and return the final name (which is the name that will have the non-CNAME records associated with it).
get_better_ns_names πŸ”’
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.
get_ip πŸ”’
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.
get_record πŸ”’
Given a set of RRs and a domain we’re looking for, return the record we’re looking for (if any).
resolve_combined_recursive πŸ”’
Helper function for resolving CNAMEs: resolve, and add some existing RRs to the ANSWER section of the result.
resolve_hostname_to_ip πŸ”’
Resolve a hostname into an IP address, optionally only doing local resolution.
resolve_recursive
Recursive DNS resolution.
resolve_recursive_notimeout πŸ”’
Timeout-less version of resolve_recursive.
resolve_with_nameserver_response πŸ”’
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.
validate_nameserver_response πŸ”’
Validate a nameserver response against the question by only keeping valid RRs:

Type Aliases§

RecursiveContext