char/dns-ez
cloudflare dns management via plaintext zonefiles
git clone https://git.t4t.associates/char/dns-ez
cb198f4
main
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 zonesdns-ez import <zone>: fetch a zone as a zonefile, passdns-ez import --allto grab all domains for the accountdns-ez apply <file>: apply a zone to Cloudflare, pass--yesfor non-interactive usage. supports--dry-runalso
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