Skip to content

nrdxp/cfdyndns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jun 29, 2024
a05d046 · Jun 29, 2024
Jun 4, 2024
Jun 4, 2024
Jun 29, 2024
Sep 21, 2015
Jan 25, 2016
Sep 19, 2023
Aug 31, 2023
Jun 29, 2024
Jun 29, 2024
Jun 29, 2024
Jan 25, 2016
Sep 24, 2015
Sep 24, 2015
Sep 20, 2023
Sep 10, 2016
Jun 29, 2024
Jun 4, 2024
Jun 4, 2024
Jun 4, 2024
Sep 11, 2023
Aug 31, 2023

Repository files navigation

cfdyndns

CloudFlare Dynamic DNS Client

Reimplementation of cloudflare-dyndns in Rust.

building

cargo build

usage

Usage: cfdyndns [OPTIONS] --records <RECORDS>

Options:
  -r, --records <RECORDS>  Comma separated DNS records to update with the host's public IP [env: CLOUDFLARE_RECORDS=]
  -t, --token <TOKEN>      recommended: The CloudFlare API token to authenticate with [env: CLOUDFLARE_APITOKEN]
  -k, --key <KEY>          deprecated: The CloudFlare API key to authenticate with, also requires email [env: CLOUDFLARE_APIKEY]
  -e, --email <EMAIL>      deprecated: The CloudFlare email to authenticate with, also requires API key [env: CLOUDFLARE_EMAIL=]
  -v, --verbose...         More output per occurrence
  -q, --quiet...           Less output per occurrence
  -6                       set an AAAA record to the host's ipv6 address
  -4                       set an A record to the host's ipv4 address
  -h, --help               Print help
  -V, --version            Print version

installing as systemd service

  1. edit systemd/cloudflare-dyndns.service to point to your cloudflare-dyndns binary.

  2. copy systemd/cloudflare-dyndns.config.example to systemd/cloudflare-dyndns.config and update as appropriate

  3. make install-systemd

uninstalling systemd service

  1. make uninstall-systemd

acknowledgement

Special thanks to colemickens for bootstrapping and transferring ownership of this project.