3 stable releases
1.6.2 | Mar 26, 2022 |
---|---|
1.6.1 | Mar 9, 2022 |
#13 in #domains
18KB
317 lines
cfddns
Yet another DDNS client for Cloudflare written in Rust.
Usage
cfddns -c <config.yml> <domain-list.txt>
cat << EOD > domains
example.com
mail.example.com
example.org
EOD
cat <<EOD > cfddns.yml
token: "<CloudFlare API token>"
interval: 900 # in seconds (optional)
endpoint: "https://api.ipify.org" # external ip provider (optional)
EOD
cfddns -c cfddns.yml domains
Install
Arch Linux
Install cfddns
from AUR.
yay -S cfddns
vim /etc/cfddns/cfddns.yml # replace `token` value with yours
vim /etc/cfddns/domains
systemctl enable --now cfddns
Cargo
cargo install cfddns
Build from source
git clone https://github.com/uetchy/cfddns.git && cd cfddns
cargo build --release
cp target/release/cfddns /usr/local/bin
Contribute
Tasks
- Report a bug
- Create and maintain
cfddns
package for your favorite Linux distribution
Dependencies
~26–42MB
~804K SLoC