Skip to content

Instantly share code, notes, and snippets.

@kdmurray
kdmurray / update-dns.sh
Last active December 20, 2015 13:19 — forked from mhussain/update-dns.sh
#!/bin/sh
# Modified by kdmurray from the source at https://gist.github.com/mhussain/2634050
# - Removed the comparison to the old WAN IP, forces an update each time the script is run
# - Added the touch command to an empty hidden file (~/.last-linode-ddns-refresh) to show
# when the last DDNS update took place.
LINODE_API_KEY=your-linode-api-key
DOMAIN_ID=your-domainid
RESOURCE_ID=your-domain-resourceid