~humaid/cloudflare-ddns-client

A simple Cloudflare DDNS client.
2343991c — Humaid AlQassimi 4 months ago
Fix IP change check
8bec6f83 — Humaid AlQassimi 4 months ago
Initial commit

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~humaid/cloudflare-ddns-client
read/write
git@git.sr.ht:~humaid/cloudflare-ddns-client

You can also use your local clone with git send-email.

#Cloudflare DDNS Client

#1. Description

This is a simple Cloudflare Dynamic DNS client, which updates a record to the current public IP address. I have created this as I couldn't find a very simple solution to this very simple problem.

#2. Requirements

The following packages must be installed on your system.

  • Go (tested with 1.14)

#3. Installation and Usage

$ go install git.sr.ht/~humaid/cloudflare-ddns-client
$ export APIKey=<API KEY here>
$ export Zone=<Zone ID here>
$ export RecordName=<Full record name here, e.g. foo.example.com>
$ cloudflare-ddns-client

You will have to create an API token which has the permission to edit zone DNS (Zone.DNS).

This program will check every minute unless interrupted.