Skip to content

Instantly share code, notes, and snippets.

View mjhirst's full-sized avatar

Marcus mjhirst

  • United Kingdom
View GitHub Profile
@mjhirst
mjhirst / cloudflare_ddns.sh
Last active June 8, 2023 21:57
Use Cloudflare's API to set Dynamic DNS records with Crontab
#!/bin/sh
# 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
CF_EMAIL='your@email.address'
CF_DNS='address.domain.com'
GET_IP=$(dig +short txt ch whoami.cloudflare @1.0.0.1)
Verifying my Blockstack ID is secured with the address 1HAyscm6D1EUvATHkTTKda1zpB6iYbnH1i https://explorer.blockstack.org/address/1HAyscm6D1EUvATHkTTKda1zpB6iYbnH1i