Documentation ¶
Index ¶
- Constants
- func CheckCNAMExistBaidu(fqdn string) (uint16, string, error)
- func ClearFqdnCache()
- func ExtractSubDomain(domain, zone string) (string, error)
- func FindPrimaryNsByFqdn(fqdn string) (string, error)
- func FindPrimaryNsByFqdnCustom(fqdn string, nameservers []string) (string, error)
- func FindZoneByFqdn(fqdn string) (string, error)
- func FindZoneByFqdnCustom(fqdn string, nameservers []string) (string, error)
- func ParseNameservers(servers []string) []string
- func ToFqdn(name string) string
- func UnFqdn(name string) string
- type ChallengeInfo
- type DNSError
Constants ¶
const ( // DefaultPropagationTimeout default propagation timeout. DefaultPropagationTimeout = 60 * time.Second // DefaultPollingInterval default polling interval. DefaultPollingInterval = 2 * time.Second // DefaultTTL default TTL. DefaultTTL = 120 )
Variables ¶
This section is empty.
Functions ¶
func ClearFqdnCache ¶
func ClearFqdnCache()
ClearFqdnCache clears the cache of fqdn to zone mappings. Primarily used in testing.
func ExtractSubDomain ¶
ExtractSubDomain extracts the subdomain part from a domain and a zone.
func FindPrimaryNsByFqdn ¶
FindPrimaryNsByFqdn determines the primary nameserver of 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 FindPrimaryNsByFqdnCustom ¶
FindPrimaryNsByFqdnCustom determines the primary nameserver of 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 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 FindZoneByFqdnCustom ¶
FindZoneByFqdnCustom 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 ParseNameservers ¶
Types ¶
type ChallengeInfo ¶
type ChallengeInfo struct { // FQDN is the full-qualified challenge domain (i.e. `_acme-challenge.[domain].`) FQDN string // Value contains the value for the TXT record. Value string }
ChallengeInfo contains the information use to create the TXT record.
func GetChallengeInfo ¶
func GetChallengeInfo(domain string, value string) ChallengeInfo