GitHunt
MY

myyra/ddns

Simple DDNS for Cloudflare

DDNS

Simple DDNS for Cloudflare, built using these assumptions:

  • All my DNS is in Cloudflare, no other provider is/will be supported unless I switch
  • I want to use a reliable and well known source for the IP check (in this case Cloudflare)
  • It shouldn't need any other input than the domain and subdomain the record should be updated to

Usage

Make sure the zone has been created in Cloudflare, then run

docker run -d --restart=always --name=ddns ghcr.io/myyra/ddns \
    -token="Your Cloudflare API token here" \
    -recordName="home.example.com" \
    -zoneName="example.com"

If the record for the subdomain doesn't exist yet, it will be created.

If it already exists, it will be updated only if the IP has changed.

Languages

Go95.8%Dockerfile4.2%

Contributors

Apache License 2.0
Created January 22, 2021
Updated April 11, 2022
myyra/ddns | GitHunt