Documentation ¶
Overview ¶
Adds lego support for http://duckdns.org .
See http://www.duckdns.org/spec.jsp for more info on updating TXT records.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNSProvider ¶
type DNSProvider struct {
// contains filtered or unexported fields
}
DNSProvider adds and removes the record for the DNS challenge
func NewDNSProvider ¶
func NewDNSProvider() (*DNSProvider, error)
NewDNSProvider returns a new DNS provider using environment variable DUCKDNS_TOKEN for adding and removing the DNS record.
func NewDNSProviderCredentials ¶
func NewDNSProviderCredentials(duckdnsToken string) (*DNSProvider, error)
NewDNSProviderCredentials uses the supplied credentials to return a DNSProvider instance configured for http://duckdns.org .
func (*DNSProvider) CleanUp ¶
func (d *DNSProvider) CleanUp(domain, token, keyAuth string) error
CleanUp clears duckdns TXT record
func (*DNSProvider) Present ¶
func (d *DNSProvider) Present(domain, token, keyAuth string) error
Present creates a TXT record to fulfil the dns-01 challenge. In duckdns you only have one TXT record shared with the domain and all sub domains.
To update the TXT record we just need to make one simple get request.