Skip to content

Instantly share code, notes, and snippets.

View mjhirst's full-sized avatar

Marcus mjhirst

View GitHub Profile
mjhirst /
Last active June 8, 2023 21:57
Use Cloudflare's API to set Dynamic DNS records with Crontab
# Cloudflare API v.4 Variables
CF_APIKEY='Your API Key Here'
CF_ZONEID='The Zone ID here' # Found on your Cloudflare Dashboard
CF_DNSID='The DNS ID here' # Found by listing DNS with Cloudflare API, see below for command
GET_IP=$(dig +short txt ch whoami.cloudflare @
Verifying my Blockstack ID is secured with the address 1HAyscm6D1EUvATHkTTKda1zpB6iYbnH1i