Nincs leírás

Joshua Avalon 1537a269d4 Update README.md 8 éve
.dockerignore 0aa76db3ff Update .dockerignore 8 éve
.gitattributes 3cbb4ed859 Initial Commit 8 éve
.gitignore 3cbb4ed859 Initial Commit 8 éve
Dockerfile a7a31aaf00 Remove perl, Fix host name 8 éve
LICENSE 43ad9c3501 Create LICENSE 8 éve
README.md 1537a269d4 Update README.md 8 éve
cloudflare.sh a7a31aaf00 Remove perl, Fix host name 8 éve
cron 83d68dfabb Remove bash, use cron instead of sleep, update docker name 8 éve

README.md

joshuaavalon/cloudflare-ddns

version Docker Pulls Docker Stars Docker Automated build Docker build MIT

The is a simple docker using curl to update DNS record on Cloudflare. Inspired by rasmusbe/cloudflare-update-record.sh

Compare to nouchka/cloudflare-dyndns (4.0):

  • Smaller size: 3MB vs 54MB
  • Able to update subdomain
  • Update when IP is changed

Usage

docker run  \
	-d \
	-e ZONE=example.com \
	-e HOST=example.com \
	-e API=11111111111111111111111111111111 \
	-e EMAIL=example@example.com \
	-e TTL=1 \
	-e PROXY=true \
	--name cloudflare \
joshuaavalon/cloudflare-ddns

Parameters

ZONE: Domain, e.g. example.com

HOST: DNS record to be updated, e.g. example.com, subdomain.example.com

API: Cloudflare API key

EMAIL: Cloudflare Email

TTL: Time to live for DNS record. Value of 1 is 'automatic'. min value:1 max value:2147483647.

PROXY: Whether the record is receiving the performance and security benefits of Cloudflare. true to enable; false to disable

WAIT: Time to check if ip changed. Argument for sleep.

.5 # Waits 0.5 second.
5  # Waits 5 seconds.
5s # Waits 5 seconds.
5m # Waits 5 minutes.
5h # Waits 5 hours.
5d # Waits 5 days.