EZ DDNS CLOUDFLARE
This script aims to make the dynamic ip of your local server, public. It does this by regularly updating cloudflare’s dns record. Basically, your domain will always be updated every IP change.
- An account on Cloudflare.
- At least 1 DNS record setup on cloudflare
- Crontab installed
Your domain will point to the public address of the machine in which you execute this script.
Clone this repository
git clone https://github.com/anywayzz/ez-ddns-cloudflare
config.py and set
API_TOKEN = " [ YOUR API TOKEN ] " ZONE_ID = " [ YOUR ZONE ID ] " EMAIL = " [ YOUR CLOOUDFLARE EMAIL ] " DOMAIN = " [ THE DOMAIN TO BE UPDATED ] "
if you don’t know your API TOKEN check .
if you don’t know your ZONE ID check here.
Finally start the script:
chmod +x ezddns.sh; ./ezddns.sh