dns01

package
v0.0.0-...-db96cfc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeKeyAuthorization

func EncodeKeyAuthorization(keyAuth string) string

EncodeKeyAuthorization encodes a key authorization value to be used in a TXT record.

func FQDNFromTXTRecordName

func FQDNFromTXTRecordName(name string) string

FQDNFromTXTRecordName returns the FQDN for a TXT record name

func FindZoneByFQDN

func FindZoneByFQDN(fqdn string, nameservers []string) (string, error)

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

func RecursiveNameservers(custom []string) []string

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

func RemoveZoneFromFqdn(fqdn, zone string) string

RemoveZoneFromFqdn removes the zone from an FQDN and return the sub domain

func TXTRecordName

func TXTRecordName(domain string) string

TXTRecordName returns the name of the TXT record to create for solving the dns-01 challenge.

func ToFqdn

func ToFqdn(name string) string

ToFqdn converts the name into a fqdn appending a trailing dot.

func UnFqdn

func UnFqdn(name string) string

UnFqdn converts the fqdn into a name removing the trailing dot.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL