Simple script to automatically update Cloudflare DNS entry for a home server
-
Install dependencies from
requirements.txt
-
Create the A record on Cloudflare that you want to keep updated.
-
Find your
zone_id
by going to the cloudflare website, clicking on your domain, and scrolling down to the the API section. You'll also need your global API key. -
Copy the
template.config.py
toconfig.py
and modify the fields. -
Setup cron to run the script at the desired frequency.