dode

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: MIT Imports: 7 Imported by: 1

README

do.de for libdns

Go Reference

This package implements the libdns interfaces for do.de, allowing you to manage DNS records.

The do.de API only supports creating and removing TXT records for domains starting with _acme-challenge.. This means that this package can only be used when issuing a TLS certificate using the DNS-01 Challenge.

To authenticate with the do.de API, you need an API token. You can retrieve by logging into your do.de account and navigating to Domains > Einstellungen > Let's Encrypt API-Token.

Documentation

Overview

Package dode implements a DNS record management client compatible with the libdns interfaces for do.de. Unfortunately, the do.de API only supports creating and removing TXT records for domains starting with `_acme-challenge.`

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

type APIResponse struct {
	Domain  *string `json:"domain"`
	Success *bool   `json:"success"`
	Error   *string `json:"error"`
}

type Provider

type Provider struct {
	// API token for do.de API
	APIToken string `json:"api_token,omitempty"`
}

Provider facilitates DNS record manipulation with do.de.

func (*Provider) AppendRecords

func (p *Provider) AppendRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)

AppendRecords adds records to the zone. It returns the records that were added.

The do.de API only supports creating TXT records that start with `_acme-challenge.`.

func (*Provider) DeleteRecords

func (p *Provider) DeleteRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)

DeleteRecords deletes the records from the zone. It returns the records that were deleted.

The do.de API only supports deleting TXT records that start with `_acme-challenge.`.

Jump to

Keyboard shortcuts

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