Skip to content

Instantly share code, notes, and snippets.

View skylerwlewis's full-sized avatar

Skyler Lewis skylerwlewis

View GitHub Profile
@skylerwlewis
skylerwlewis / netlify-ddns.sh
Last active October 29, 2024 01:24
Netlify Dynamic DNS
#!/bin/bash
#
# This is a Bash script to update a Netlify subdomain A record with the current external IP.
#
# Repo: https://github.com/skylerwlewis/netlify-ddns
# Gist: https://gist.github.com/skylerwlewis/ba052db5fe26424255674931d43fc030
#
# Usage:
# netlify-ddns.sh <ACCESS_TOKEN> <DOMAIN> <SUBDOMAIN> <TTL> [<CACHED_IP_FILE>]
#