[READ-ONLY] Mirror of https://github.com/danielroe/domain-sync. A tiny script that migrates all my Gandi domains to use Cloudflare DNS.
cloudflare dns gandi script
0

Configure Feed

Select the types of activity you want to include in your feed.

TypeScript 97.0%
JavaScript 3.0%
61 1 0

Clone this repository

https://git.vm.fail/danielroe.dev/domain-sync https://git.vm.fail/did:plc:7dufkutwc6hdikj5qgdwpuqu
ssh://git@knot1.tangled.sh:2222/danielroe.dev/domain-sync ssh://git@knot1.tangled.sh:2222/did:plc:7dufkutwc6hdikj5qgdwpuqu

For self-hosted knots, clone URLs may differ based on your setup.


README.md

domain-sync#

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:

  • User > Memberships > Edit
  • Zone > Zone Settings > Edit
  • Zone > Zone > Edit

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.