This is a module to programmatically create and update DNSLink π records from various DNS providers.
go-dnslink
is a standard Go module which can be installed with:
go get github.com/pinbase/go-dnslink
Import the module as follows
import (
...
"github.com/pinbase/go-dnslink"
)
The "DOMAIN"
value should be the full domain you want to assign a DNSLink record to, e.g. "pinbase.io"
.
The CID
value should be a CID from go-cid.
err := dnslink.Cloudflare("API_TOKEN", "", "DOMAIN", CID)
You can generate an API token in the Cloudflare dashboard https://dash.cloudflare.com/profile/api-tokens, using the Edit zone DNS
template.
err := dnslink.Cloudflare("API_KEY", "EMAIL_ADDRESS", "DOMAIN", CID)
Or you can provide your account's API key and email address.
PRs are welcome!
Especially good PRs would be ones implementing more DNS providers.
If updating the README, please stick to the standard-readme specification.
MIT Β© Pinbase