Skip to content

Instantly share code, notes, and snippets.

View badrianiulian's full-sized avatar

badrianiulian badrianiulian

  • The Universe
View GitHub Profile
@badrianiulian
badrianiulian / README.md
Last active May 26, 2020 10:22
Improved Cloudflare API v4 Dynamic DNS Update in Bash for IPv4/IPv6 records

"Cloudflare DDNS bash client with systemd"

Improved version

Initially cfupdater-badrianiulian forked from cfupdater-lifehome.

This is the new script I use to update DDNS through Cloudflare. It analyses the output interface and updates, deletes or adds records to the Cloudflare defined domain.

This script uses 'jq', 'curl', 'grep', 'ifconfig' and 'ping'

It has the same usage instructions as the previous script.

How to use in debian?

@badrianiulian
badrianiulian / README.md
Last active November 16, 2023 08:28 — forked from lifehome/README.md
Cloudflare API v4 Dynamic DNS Update in Bash for IPv4/IPv6 records

Cloudflare DDNS bash client with systemd

This is a bash script to act as a Cloudflare DDNS client, useful replacement for ddclient.

How to use?

  1. Put the cfupdater file to /usr/local/bin
  2. chmod +x /usr/local/bin/cfupdater
  3. Create a systemd service unit at /etc/systemd/system/, the cfupdate.service is shown as an example.
  4. Create a systemd timer unit at the same location of the service unit, the cfupdate.timer is shown as an example.

Note