Skip to main content

Cfdyndns Role

Run a dynamic DNS updater that publishes the public IP to Cloudflare.


Variables​

VariableTypeOptionsDefaultDescription
cfdyndns_api_emailstring---""Cloudflare account email used by the DDNS Worker
cfdyndns_api_tokenstring---""Cloudflare API token for DNS updates
cfdyndns_update_urlstring---""DDNS update endpoint URL
cfdyndns_update_hostnameslist of string---[]hostnames to update in one DDNS request
cfdyndns_cloudflare_trace_urlstring---https://cloudflare.com/cdn-cgi/traceCloudflare trace URL for IP detection
cfdyndns_script_pathstring---/usr/local/bin/ip_updater.pypath to the IP updater script
cfdyndns_state_dirstring---/var/lib/cfdyndnsdirectory for storing state files
cfdyndns_last_ip_filestring---{{ cfdyndns_state_dir }}/last_ippath to the file storing the last known IP
cfdyndns_check_intervalstring---5mininterval between IP change checks
cfdyndns_on_boot_delaystring---1mindelay before first check after boot
cfdyndns_python_requests_packagestring---python3-requestsname of the Python requests package to install