Cloudflare DNS Updater written in Rust. Works for IPv4 and IPv6 alike.
Find a file
Neshura 40f617a2d6
All checks were successful
Build binary file and bundle packages / test (pull_request) Successful in 35s
Run Tests on Code / run-tests (push) Successful in 37s
Build binary file and bundle packages / build (pull_request) Successful in 49s
Bump forgejo-release to v2
2024-08-06 12:20:15 +00:00
.forgejo/workflows Bump forgejo-release to v2 2024-08-06 12:20:15 +00:00
debian Remove deprecated scripts for User Service File 2024-01-08 08:43:14 +00:00
src Migrate away from Mullvad API 2024-06-10 11:51:27 +02:00
.gitignore Update .gitignore 2023-12-29 01:56:57 +01:00
Cargo.lock Release 1.1.8 2024-06-10 12:46:00 +02:00
Cargo.toml Release 1.1.8 2024-06-10 12:46:00 +02:00
COPYING Add GPLv3 License 2023-12-28 23:21:25 +01:00
README.md Correct zone.d naming in README to zones.d 2024-01-19 08:55:50 +00:00

Cloudflare DNS Updater

Using the application

The application necessarily requires a valid Cloudflare API Token. Further the application must be located in the same network as the configured zones.

The actual configuration happens in three or more files located in ~/.config/cloudflare-dns-updater/: config.toml contains general configuration parameters for the application interfaces.toml contains all IPv6 interfaces available/used by the zone config files.
.toml files in zones.d contain settings for individual zones.

Example:

config.toml

cf_api_token = "0123456789abcdef0123456789abcdef01234"  # Cloudflare API Token
check_interval_seconds = 30                             # Defaults to 60 if missing
uptime_url = "https://example.org/uptime/id12"          # Post Endpoint for a Uptime Monitor

interfaces.toml

host_address = "::edcb:a098:7654:3210"

[interfaces]
example-interface = "::0123:4567:890a:bcde"   # static part of the IP, the rest will be dynamically generated using the host

zones.d/example.org.toml

email = "owner@example.org"             # Email of User owning the Zone
zone = "example.org"                    # Zone Name
id = "01234567890abcdefghijklmnopqrstu" # Zone ID

[[entry]]
name = "example.org"                # "@" Symbol is not currently supported 
type = ["AAAA", "A"]                # Options are: "A" (IPv4/A Record) and/or "AAAA" (IPv6/AAAA Record) 
interface = "example-interface"     # Only required on type values 6 and 10

Debian Repository

Currently supported:

  • Debian 12 'Bookworm'

Includes systemd system and user unit files

For more details see the package registry