A tiny script that migrates all my Gandi domains to use Cloudflare DNS.
This is a tiny script for my use that migrates all my Gandi domains to use Cloudflare DNS.
To install dependencies, ensure you have the latest version of bun installed, and then run:
bun install
Create a file called .env with your Gandi API token and a Cloudflare token with the following permissions:
Then simply run:
bun run index.ts
This script is idempotent; it’s safe to run more than once as it will skip domains that already have their nameservers updated to CF.
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.