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 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