Skip to content

Instantly share code, notes, and snippets.

@disusered
Created May 2, 2011 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save disusered/952232 to your computer and use it in GitHub Desktop.
Save disusered/952232 to your computer and use it in GitHub Desktop.
Linode Dynamic DNS
# update our entry with our ip
wget -qO- https://api.linode.com/?api_key=KEY\&api_action=domain.resource.update\&domainid=DOMAINID\&resourceid=RESOURCEID\&Target="[remote_addr]"
#
# in case you don't have your Domain ID on hand, you would need to run the following command first:
# wget -qO- https://api.linode.com/?api_key=APIKEY\&api_action=domain.list | tr ',' '\n'```
#
# afterwards, we can get the ResourceID via:
# wget -qO- https://api.linode.com/?api_key=APIKEY\&api_action=domain.resource.list\&domainid=DOMAINID| tr ',' '\n'```
#
# for A/AAAA entries, [remote_addr] is automatically replaced by the IP where the request originated from.
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment