Skip to content

Instantly share code, notes, and snippets.

@ScrambledBits
Forked from disusered/lindns.sh
Created February 19, 2012 20:26
Show Gist options
  • Save ScrambledBits/1865604 to your computer and use it in GitHub Desktop.
Save ScrambledBits/1865604 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