Skip to content

Instantly share code, notes, and snippets.

Avatar

badrianiulian badrianiulian

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

"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 Mar 6, 2020 — forked from lifehome/README.md
Cloudflare API v4 Dynamic DNS Update in Bash for IPv4/IPv6 records
View README.md

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