Skip to content

Instantly share code, notes, and snippets.

@hlissner
Created December 23, 2015 10:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hlissner/0dd722e96bb13c7811ad to your computer and use it in GitHub Desktop.
Save hlissner/0dd722e96bb13c7811ad to your computer and use it in GitHub Desktop.
Steps to set up a linode-based dyndns
# This is not a script! These are notes!
KEY=
DOMAINID=
RESOURCE_ID=
# Getting the domain ID
https://api.linode.com/?api_key=$KEY&api_action=domain.list
# Getting the resource ID
https://api.linode.com/?api_key=$KEY&api_action=domain.resource.list&domainid=$DOMAINID
# Change update IP in DNS record. You will use this line once you have your $KEY,
# $DOMAINID, and $RESOURCEID in, say, a cron-job script or in the DDNS section of any
# router with Tomato installed on it.
#
# NOTE: don't replace [remote-addr], linode will replace it with the IP of the requester
https://api.linode.com/?api_key=$KEY&api_action=domain.resource.update&domainid=$DOMAINID&resourceid=$RESOURCEID&target=[remote_addr]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment