unifios-utilities/cloudflare-ddns
Yuval Adam 0403bf2247
Move cloudflare-ddns TTL config to proper location (#414)
Current location does not match cloudflare-ddns script usage and outputs a warning `⚙️ No config detected for 'ttl' - defaulting to 300 seconds (5 minutes)`
2022-11-01 01:51:30 -07:00
..
configs Move cloudflare-ddns TTL config to proper location (#414) 2022-11-01 01:51:30 -07:00
on_boot.d Add Cloudflare DDNS (#80) 2020-12-24 14:25:22 -08:00
README.md Updating Org 2022-06-24 08:16:09 -07:00

Cloudflare Dynamic DNS

Features

  • Update Multiple Subdomains
  • Proxy your traffic through cloudflare
  • Set a ttl

Complete feature list and documentation can be found here

Requirements

  1. You have successfully setup the on boot script described here
  2. You must have a cloudflare profile with at least one domain.
  3. You must have a valid cloudflare api token with correct permissions (see complete documentation for details)

Customization

Update config.json with the following options:

  • your cloudflare api token
  • your zone id
  • each subdomain you'd like to point at your udm-pro
  • Set the proxied flag if you'd like cloudflare to proxy the records
  • Set the ttl value you'd like for your records

Steps

  1. Make a directory for your configuration

    mkdir -p /mnt/data/cloudflare-ddns
    
  2. Create a cloudflare-ddns configuration in /mnt/data/cloudflare-ddns and update the configuration to meet your needs.

  3. Copy 30-cloudflare-ddns.sh to /mnt/data/on_boot.d.

  4. Execute /mnt/data/on_boot.d/30-cloudflare-ddns.sh

  5. Execute podman logs cloudflare-ddns to verify the continer is running without error (ipv6 warnings are normal).

Useful commands

# view cloudflare-ddns logs to verify the continer is running without error (ipv6 warnings are normal).
podman logs cloudflare-ddns