Sign inSign up

abeltramo/cloudflare-ddns

By abeltramo

Updated over 5 years ago

A simple docker image to automatically update Cloudflare DNS IP on a Dynamic DNS provider.

Image
0

2.2K

abeltramo/cloudflare-ddns repository overview

Docker hub - abeltramo/cloudflare-ddns Docker Image Size (latest by date)

Cloudflare DDNS update

Access your home network remotely via a custom domain name without a static IP!

A simple bash script to automatically update Cloudflare DNS IP on a Dynamic DNS provider.

Docker usage

A precompiled docker image is available on Docker HUB. This is a multi-arch image and will run on amd64, aarch64, and armhf devices, including the Raspberry Pi.

docker run -d \
    --name cloudflare-ddns \
    --restart always \
    -e "[email protected]" \
    -e "AUTH_KEY=365....." \
    -e "ZONE_IDENTIFIER=db....." \
    -e "RECORD_NAME=example.com" \
    abeltramo/cloudflare-ddns:latest

Environment variables

Variable NameDefault valueDescription
AUTH_EMAILThe email used to login on Cloudflare
AUTH_KEYGlobal API key, found at: top right corner, "My profile" > "Global API Key"
ZONE_IDENTIFIERCan be found in the "Overview" tab of your domain
RECORD_NAMEThe full domain name to be updated
SLEEP_SECONDS900The interval in seconds between checks for changes in IP
PROXIEDfalseSet to true to enable Cloudflare proxy protection
HEALTHCHECK_START_URLSet a URL to be called when the script start, used with healthchecks.io
HEALTHCHECK_END_URLSet a URL to be called when the script end, used with healthchecks.io
CURL_PARAMS-sS --retry 3Change default CURL params, useful for debug, proxy, etc..

Tag summary

Content type

Image

Digest

Size

3.9 MB

Last updated

over 5 years ago

docker pull abeltramo/cloudflare-ddns