samueldiethelm / cloudflare-ddns

Python script to update Cloudflare record with public dynamic IP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cloudflare-ddns

Python script to update Cloudflare record with public dynamic IP

dependecies

pip install requests python-dotenv

usage

  1. Create zone and record to be updated on Cloudflare.
  2. Add environment variables to .env file:
    • CLOUDFLARE_API_KEY
    • CLOUDFLARE_ZONE_ID
    • CLOUDFLARE_RECORD_ID
  3. Run python3 cloudflare-ddns.py recurrently in crontab to keep the record updated.

About

Python script to update Cloudflare record with public dynamic IP


Languages

Language:Python 100.0%