Sign inSign up

stewart86/cloudflare_ddns

By stewart86

•Updated almost 5 years ago

A simple script to update Cloudflare with your Dynamic IP address

Image
0

256

stewart86/cloudflare_ddns repository overview

⁠Cloudflare DDNS

A simple script to update Cloudflare with your Dynamic IP address to replace DuckDNS or similar DDNS service that you usually configure from your router.

This script provides one short interval updates (defualts to 5 minutes interval), and one long interval updates which that is scheduled daily.

The short interval update can be customised through the environment variables (UPDATE_INTEVAL).

⁠Install with Docker

Basic setup

  1. Register with Cloudflare and add your domain name.
  2. retrieve Cloudflare API token from Cloudflare.
  3. retrieve Cloudflare zone ID from Cloudflare.
  4. Replace any environment variables with <> to it's respective values.
docker run -d -e "[email protected]" -e "CF_API_TOKEN=<cloudflare-api-token>" -e "CF_ZONE_ID=<site-id>" -e "DOMAIN_NAME=yourdomain.com"

Docker compose

services:
  ddns:
    image: stewart86/cloudflare_ddns
    container_name: cloudflare_ddns
    environment:
      - [email protected]
      - CF_API_TOKEN=<cloudflare-api-token>
      - CF_ZONE_ID=<cloudflare-site-id>
      - DOMAIN_NAME=<yourdomain.com>
      - UPDATE_INTERVAL=1  #optional

Tag summary

Content type

Image

Digest

Size

56.8 MB

Last updated

almost 5 years ago

docker pull stewart86/cloudflare_ddns