Skip to content

Instantly share code, notes, and snippets.

View foobarhl's full-sized avatar

[foo] bar foobarhl

View GitHub Profile
@foobarhl
foobarhl / cloudflare-ddns-update.sh
Last active January 2, 2024 14:37 — forked from Tras2/cloudflare-ddns-update.sh
A bash script to update a Cloudflare DNS A record with the external IP of the source machine
#!/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 for my home
# Needs the DNS record pre-creating on Cloudflare
## Based on https://gist.github.com/Tras2/cba88201b17d765ec065ccbedfb16d9a with updates to use
## per-zone configurable access tokens available in the API sections of your Cloudflare profile
## - info@foo-games.com
# with appologies to Adam Patrick Devlin / Edward Daniel Chester / Eric Idle / Graham Chapman / John Cleese / Mark James Morriss / Michael Palin / Neil Innes / Scott Edward Morriss / Terry Gilliam and Sony
Brave [redacted] ran away.
Bravely ran away away.
When danger reared it's ugly head,
He bravely turned his tail and fled.
Yes, brave [redacted] turned about
And gallantly he chickened out.
Swiftly taking to his feet,