Documentation ¶
Index ¶
- Variables
- func DNS01LookupFQDN(domain string, followCNAME bool, nameservers ...string) (string, error)
- func DNSQuery(fqdn string, rtype uint16, nameservers []string, recursive bool) (in *dns.Msg, err error)
- func FindBestMatch(query string, domains ...string) (string, error)
- func FindZoneByFqdn(fqdn string, nameservers []string) (string, error)
- func ToFqdn(name string) string
- func UnFqdn(name string) string
- func ValidateCAA(domain string, issuerID []string, iswildcard bool, nameservers []string) error
- func WaitFor(timeout, interval time.Duration, f func() (bool, error)) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DNSTimeout = 10 * time.Second
DNSTimeout is used to override the default DNS timeout of 10 seconds.
View Source
var ( // PreCheckDNS checks DNS propagation before notifying ACME that // the DNS challenge is ready. PreCheckDNS preCheckDNSFunc = checkDNSPropagation )
View Source
var RecursiveNameservers = getNameservers(defaultResolvConf, defaultNameservers)
Functions ¶
func DNS01LookupFQDN ¶ added in v1.8.0
DNS01LookupFQDN returns a DNS name which will be updated to solve the dns-01 challenge TODO: move this into the pkg/acme package
func DNSQuery ¶ added in v1.8.0
func DNSQuery(fqdn string, rtype uint16, nameservers []string, recursive bool) (in *dns.Msg, err error)
DNSQuery will query a nameserver, iterating through the supplied servers as it retries The nameserver should include a port, to facilitate testing where we talk to a mock dns server.
func FindBestMatch ¶ added in v1.8.0
FindBestMatch returns the longest match for a given domain within a list of domains
func FindZoneByFqdn ¶
FindZoneByFqdn determines the zone apex for the given fqdn by recursing up the domain labels until the nameserver returns a SOA record in the answer section.
func ValidateCAA ¶ added in v0.7.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.