/cloudflare-dynamic-dns

Primary LanguageRustApache License 2.0Apache-2.0

Cloudflare Dynamic DNS

I'm creating this so it's easy to use in a container, as a cron job, fass or manually.

Currently the only way to set the variables is with environment vars. The list is below.

Usage

AUTH_EMAIL=%EMAIL% /
AUTH_KEY=%KEY% /
RECORD_ID=%RECORD_ID% /
ZONE_IDENTIFIER=%ZONE_IDENTIFIER % /
RECORD_NAME=%RECORD_NAME% /
cfddns

To Do

  • add cli with help
  • implement logging
  • get config from toml file with default location as ~/.config/cfddns/config.toml or with a flag

Future Usage

cfddns

when specifying the toml location

cfddns -c config.toml

base toml file

auth_email=examle@email.com
auth_key=exampleKey
record_id=exampleId
zone_identifier=exampleZoneIdentifier
record_name=exampleRecordName