Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add resolver fallback to the null resolver (getaddrinfo) #103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jul 25, 2023

  1. Add resolver fallback to the null resolver (getaddrinfo)

    This enables a best-effort, two-step resolution when a resolver is
    configured:
    - if the DNS resolver returns any domain, that record is used with its
      corresponding TTL
    - otherwise, the module tries resolving the name with the default, NULL
      resolver, which is just a wrapper over getaddrinfo
      * if the resolution succeeds, this was likely a domain in /etc/hosts
        or an IP literal, which was not known by the DNS server. The
        associated record has no TTL value and uses the default director
        TTL.
      * if the resolution fails, this was likely a bad domain. No records
        are stored and a new request is made after the default director TTL,
        as was done previously.
    delthas committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    a84e31f View commit details
    Browse the repository at this point in the history