dns_resolver

Module recursive

Source

Structs§

Enums§

Functions§

  • 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).
  • 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).
  • Helper function for resolving CNAMEs: resolve, and add some existing RRs to the ANSWER section of the result.
  • Resolve a hostname into an IP address, optionally only doing local resolution.
  • Recursive DNS resolution.
  • Timeout-less version of resolve_recursive.
  • 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 a nameserver response against the question by only keeping valid RRs:

Type Aliases§