Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrCAARecordNotFound = fmt.Errorf("No CAA record found")
)
View Source
var (
ErrCNAMERecordNotFound = fmt.Errorf("No CNAME record found")
)
Functions ¶
This section is empty.
Types ¶
type CAACheckResult ¶
type CAARecord ¶
type CAARecord struct { Tag string Issuer string ValidationMethods []string AccountUri string Data string }
func ParseNewRecord ¶
ParseNewRecord parses a CAA entry, and returns a new Record instance
func (*CAARecord) HasAccountURI ¶
HasAccountURI returns true if AccountURI for the CAA record has been set
type CNAMERecord ¶
func NewCNAMERecord ¶
func NewCNAMERecord() CNAMERecord
func (*CNAMERecord) CorrectTarget ¶
func (r *CNAMERecord) CorrectTarget(acmednsdomain string) bool
CorrectTarget returns true if the CNAME has been set correctly according to acme-dns account.
type Client ¶
type Client struct {
Server string
}
func NewDNSClient ¶
func (*Client) CheckCAA ¶
func (c *Client) CheckCAA(domain string) (CAACheckResult, error)
CheckCAA performs checks to CAA records in order to determine if the domain has a CAA record and if the CAA record includes AccountURI parameter.
func (*Client) GetAuthoritativeNS ¶
GetAuthoritativeNS returns the first authoritative name server (from NS records) of a domain
Click to show internal directories.
Click to hide internal directories.