3 unstable releases
Uses new Rust 2024
| 0.2.1 | Dec 23, 2025 |
|---|---|
| 0.2.0 | Dec 23, 2025 |
| 0.1.0 | Jan 16, 2021 |
#1687 in Network programming
10KB
190 lines
Cloudflare DNS updater_rs
Cloudflare DNS Record updater written in rust. Manage your custom domain without static ip.
Setup
- Install Rust (edition 2024 compatible).
- Update
.envfile in the project root with your credentials:
CLOUDFLARE_EMAIL=you@example.com
CLOUDFLARE_API_KEY=your_api_key_or_token
CLOUDFLARE_DOMAIN=example.com
- Build or run:
cargo run
# or
cargo build -r
What it does
- Loads credentials from environment variables (or
.env). - Looks up the zone and A record for
CLOUDFLARE_DOMAINvia Cloudflare API. - Fetches your current public IPv4 from https://checkip.amazonaws.com.
- Updates the A record when the IP changes (every 10 minutes by default).
Notes
- Uses
curlbindings; OpenSSL is vendored by default. On Windows, ensureperlandnasmare available when building. - Only IPv4 is supported currently.
Dependencies
~10–23MB
~344K SLoC