Skip to content

Instantly share code, notes, and snippets.

View dietrichmax's full-sized avatar

Max Dietrich dietrichmax

View GitHub Profile
@matiasba
matiasba / cloudflare-ddns.sh
Created June 8, 2022 19:00
Bash script for DDNS using cloudflare DNS service, with options for enabling https proxy
#!/bin/bash
# A bash script to update a Cloudflare DNS A record with the external IP of the source machine
# Used to provide DDNS service from anywhere
# DNS redord needs to be pre-created on Cloudflare
# Proxy - uncomment and provide details if using a proxy
#export https_proxy=http://<proxyuser>:<proxypassword>@<proxyip>:<proxyport>
# Cloudflare zone is the zone which holds the record