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 February 24, 2022 19:07
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>]
#