Sign inSign up

tenseiken/cfddns

By tenseiken

•Updated about 5 years ago
Archived

Cloudflare Dynamic DNS

Image
Networking
0

97

tenseiken/cfddns repository overview

⁠Archive Notice

I won't be maintaining this anymore. Having worked cloudflared⁠ into my stack, treating my A record like a dynamic DNS service is no longer necessary.

⁠Overview

Based on Alpine. Utilizes the Cloudflare API v4 to update your A record.

Required environment variables:

  • CF_EMAIL - The email address you use to sign into Cloudflare.
  • CF_APIKEY - The API key for your Cloudflare account.
  • CF_ZONENAME - The zone name that contains the hostname you'll be updating.
  • CF_HOSTNAME - The hostname whose A record you wish to update.
  • CF_INTERVAL - The interval in sleep notation (ex: 30s ; 10m ; 1h) to pause between updates.

Optional environment variables:

  • TZ - Set your time zone so the log entries will have your time zone's correct time and date. Examples: US/Central; America/Los_Angeles

Sample run command:

docker run -itd \
--restart unless-stopped \
-e CF_APIKEY=289342ade98ew8bc22346f723489654cedf12 \
-e [email protected] \
-e CF_ZONENAME=bakery.com \
-e CF_HOSTNAME=bread.bakery.com \
-e CF_INTERVAL=1h \
-e TZ=US/Eastern \
--name cfddns tenseiken/cfddns:latest

Tag summary

Content type

Image

Digest

Size

4.8 MB

Last updated

about 5 years ago

docker pull tenseiken/cfddns