Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@magicstone1412
magicstone1412 / README.md
Created March 4, 2019 15:49 — forked from lifehome/README.md
Cloudflare API v4 Dynamic DNS Update in Bash

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 files to /usr/local/bin
  • If you are using IPv4 for A record, append -v4 to cfupdater in the following systemd service unit.
  • If you are using IPv6 for AAAA record, append -v6 to cfupdater in the following systemd service unit.
  • If you prefer a dual-stack record, append -dualstack to cfupdater in the following systemd service unit.
  1. chmod +x /usr/local/bin/cfupdater
  2. Create a systemd service unit at /etc/systemd/system/, the cfupdate.service is shown as an example.

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@magicstone1412
magicstone1412 / keybase.md
Created September 25, 2017 05:38
keybase verification

Keybase proof

I hereby claim:

  • I am magicstone1412 on github.
  • I am magicstone1412 (https://keybase.io/magicstone1412) on keybase.
  • I have a public key ASAui19LWvgbkP3wR-7uvt7hX3CHsdXCvtlE3472P7NzmAo

To claim this, I am signing this object: