cloudflare-dns-cli/vendor/github.com/libdns/cloudflare
2024-04-22 23:12:47 -04:00
..
client.go Update dependencies and go version 2024-03-31 12:45:54 -04:00
LICENSE Add vendor files, allowing compilation without internet 2023-04-12 10:01:37 -04:00
models.go libdns/cloudflare: Add Priority to MX records 2024-04-22 23:12:47 -04:00
provider.go Update dependencies and go version 2024-03-31 12:45:54 -04:00
README.md Add vendor files, allowing compilation without internet 2023-04-12 10:01:37 -04:00

Cloudflare for libdns

godoc reference

This package implements the libdns interfaces for Cloudflare.

Authenticating

This package supports API token authentication.

You will need to create a token with the following permissions:

  • Zone / Zone / Read
  • Zone / DNS / Edit

The first permission is needed to get the zone ID, and the second permission is obviously necessary to edit the DNS records. If you're only using the GetRecords() method, you can change the second permission to Read to guarantee no changes will be made.

To clarify, do NOT use API keys, which are globally-scoped:

Don't use API keys

DO use scoped API tokens:

Don't use API keys