Skip to content

Instantly share code, notes, and snippets.

@iampranavsethi
iampranavsethi / Cloudlfare DDNS Updater.py
Last active August 15, 2018 19:16
Python script to update DNS 'A' records on CloudFlare to the current public IP.
CLOUDFLARE_EMAIL = "" # ENTER EMAIL ADDRESS
CLOUDFLARE_API = "" # ENTER API KEY
CLOUDFLARE_SITES = [{
'zone_id': "", # ENTER ZONE ID
'name': "", # ENTER NAME
'dns_id': "" # ENTER DNS ID
}] # ADD NEW DICT OBJECTS TO THE LIST FOR MORE THAN ONE TYPE
###############################################################################################################################