Skip to content

Instantly share code, notes, and snippets.

@rtucker
Created August 27, 2009 00:11
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save rtucker/175969 to your computer and use it in GitHub Desktop.
Save rtucker/175969 to your computer and use it in GitHub Desktop.
A one-liner to set a Linode DNS Manager target to your client's current public IP address
ssh you@yourlinode "wget -O - -q https://api.linode.com/?api_key=$LINODE_API_KEY\&api_action=domain.resource.update\&domainid=$DOMAINID\&resourceid=$RESOURCEID\&target=\`echo \$SSH_CLIENT | cut -d' ' -f1\`"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment