Dynu for libdns
This package implements the libdns interfaces for Dynu, allowing you to manage DNS records.
This package uses API Token authentication. Refer to the Dynu documentation for more information.
Start by retrieving your API token (API-Key) from the table on the API Credentials page to be able to make authenticated requests to the API.
The field OwnDomain was added to support the Caddy DNS module use case where the DNS zone (e.g. dynu.com) is different from your own (sub)domain in Dynu (e.g. my.dynu.com). Just set it to the root domain in Dynu API, e.g. domainName in the response of /dns/getroot/{hostname} call.
Several tests for the basic functionality of the real Dynu API are available. These tests are not run by default. Set the environment variables TEST_ZONE and TEST_API_TOKEN to enable the tests like so:
TEST_ZONE=example.com. TEST_API_TOKEN=dynu_api_token go test -v
If the tests fail, you can manually check and fix the DNS records on the DDNS Services page.