char/dns-ez

cloudflare dns management via plaintext zonefiles

git clone https://git.t4t.associates/char/dns-ez

Charlotte Sominitial commitcb198f4

main
476 B11 linesraw

dns-ez

Manage DNS records as plaintext zone files, and reconcile them against the Cloudflare API.

Usage

Prerequisite: Export CF_API_TOKEN as an API key that has DNS edit permission for all domains.

  • dns-ez zones: list all zones
  • dns-ez import <zone>: fetch a zone as a zonefile, pass dns-ez import --all to grab all domains for the account
  • dns-ez apply <file>: apply a zone to Cloudflare, pass --yes for non-interactive usage. supports --dry-run also
1# dns-ez
2
3Manage DNS records as plaintext zone files, and reconcile them against the Cloudflare API.
4
5## Usage
6
7Prerequisite: Export CF_API_TOKEN as an API key that has DNS edit permission for all domains.
8
9- `dns-ez zones`: list all zones
10- `dns-ez import <zone>`: fetch a zone as a zonefile, pass `dns-ez import --all` to grab all domains for the account
11- `dns-ez apply <file>`: apply a zone to Cloudflare, pass `--yes` for non-interactive usage. supports `--dry-run` also