cloudflare-ddns-ipv6

Crates.iocloudflare-ddns-ipv6
lib.rscloudflare-ddns-ipv6
version0.2.5
created_at2025-03-16 08:57:59.380079+00
updated_at2025-06-29 15:43:16.611207+00
descriptiona cmd line tool to update your cloudflare AAAA record
homepage
repository
max_upload_size
id1594301
size54,382
RuofengX (RuofengX)

documentation

README

Cloudflare DDNS IPv6

How to use

This program uses environment to config user's bearer token, zone and domain record.

There three config environment variables:

  • CF_BEARER_KEY
    The API key. You should get one on cloudflare web dashboard.
  • CF_ZONE
    The name of cloudflare's zone. Default is your root domain. For example "yourhomelab.com"
  • CF_DOMAIN
    The final domain that your want change. For example "nas.yourhomelab.com"
  • CF_DOMAIN_ALTER
    The alternative domain that your want change both. It's optional.
    For example "ipv6.nas.yourhomelab.com"

The program will use system call to search every net interfaces on the system, and then detect every IPv6 address of each interface.
It would yield first public IPv6 address (stop the search) and use the environment variables call the cloudflare api to set that record.

For more detail, please refer to the source code.

Docker usage

When use docker/podman, please ensure network is running under host mode.

Commit count: 0

cargo fmt