Documentation
¶
Index ¶
- func EncodeKeyAuthorization(keyAuth string) string
- func FQDNFromTXTRecordName(name string) string
- func FindZoneByFQDN(fqdn string, nameservers []string) (string, error)
- func RecursiveNameservers(custom []string) []string
- func RemoveZoneFromFqdn(fqdn, zone string) string
- func TXTRecordName(domain string) string
- func ToFqdn(name string) string
- func UnFqdn(name string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeKeyAuthorization ¶
EncodeKeyAuthorization encodes a key authorization value to be used in a TXT record.
func FQDNFromTXTRecordName ¶
FQDNFromTXTRecordName returns the FQDN for a TXT record name
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 RecursiveNameservers ¶
RecursiveNameservers are used to pre-check DNS propagation. It prepends user-configured nameservers (custom) to the defaults obtained from resolv.conf and defaultNameservers and ensures that all server addresses have a port value.
func RemoveZoneFromFqdn ¶
RemoveZoneFromFqdn removes the zone from an FQDN and return the sub domain
func TXTRecordName ¶
TXTRecordName returns the name of the TXT record to create for solving the dns-01 challenge.
Types ¶
This section is empty.