internal

package
v4.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 8 Imported by: 0

README

dnshome.de API

Add TXT record

https://<subdomain>:<subdomain_password>@www.dnshome.de/dyndns.php?acme=add&txt=<txtvalue>
  • <subdomain>: the subdomain (ex: lego.dnshome.de).
  • <subdomain_password>: the subdomain password.
  • <txtvalue>: the value of the TXT record (12 characters minimum)

Only one TXT record can be used for a subdomain.

Always returns StatusOK (200)

If the API call works the first word of the response body is successfully.

Can be a POST or a GET, the HTTP method doesn't seem to have an impact.

Remove TXT record

https://<subdomain>:<subdomain_password>@www.dnshome.de/dyndns.php?acme=rm&txt=<txtvalue>
  • <subdomain>: the subdomain (ex: lego.dnshome.de).
  • <subdomain_password>: the subdomain password.
  • <txtvalue>: the value of the TXT record (12 characters minimum) (IGNORED)

Only one TXT record can be used for a subdomain.

Always returns StatusOK (200)

If the API call works the first word of the response body is successfully.

Can be a POST or a GET, the HTTP method doesn't seem to have an impact.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

Client the dnsHome.de client.

func NewClient

func NewClient(credentials map[string]string) *Client

NewClient Creates a new Client.

func (*Client) Add

func (c *Client) Add(hostname, value string) error

Add adds a TXT record. only one TXT record for ACME is allowed, so it will update the "current" TXT record.

func (*Client) Remove

func (c *Client) Remove(hostname, value string) error

Remove removes a TXT record. only one TXT record for ACME is allowed, so it will remove "all" the TXT records.

Jump to

Keyboard shortcuts

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