https://github.com/danielroe/domain-sync
A tiny script that migrates all my Gandi domains to use Cloudflare DNS.
https://github.com/danielroe/domain-sync
cloudflare dns gandi script
Last synced: 9 months ago
JSON representation
A tiny script that migrates all my Gandi domains to use Cloudflare DNS.
- Host: GitHub
- URL: https://github.com/danielroe/domain-sync
- Owner: danielroe
- Created: 2023-06-16T20:55:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-14T10:36:08.000Z (9 months ago)
- Last Synced: 2025-04-14T11:39:22.824Z (9 months ago)
- Topics: cloudflare, dns, gandi, script
- Language: TypeScript
- Homepage:
- Size: 46.9 KB
- Stars: 16
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://bun.sh/) installed, and then run:
```bash
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:
```bash
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.