Skip to content

Instantly share code, notes, and snippets.

@dextervip
dextervip / cloudflare-update.py
Last active December 30, 2022 23:10 — forked from m3nu/cloudflare-update.py
Python Cloudflare Dynamic DNS Update script
#!/usr/bin/env python
"""
Update Cloudflare zone entry to current external IP.
Works great with servers on changing IPs or AWS spot instances.
Usage:
python cloudflare_update.py subdomain
[Definition]
failregex = \{<HOST>\} .+? FATAL: password authentication failed for user .+$