Skip to content

Instantly share code, notes, and snippets.

@marcojetson
Last active August 29, 2015 14:25
Show Gist options
  • Save marcojetson/4ec16d2b676bff5c8984 to your computer and use it in GitHub Desktop.
Save marcojetson/4ec16d2b676bff5c8984 to your computer and use it in GitHub Desktop.
lilidns.com cli host updater
#!/bin/bash
if [ -z "$1" ]
then
echo "Usage $0 <token> [ip]"
exit
fi
if [ -n "$2" ]
then
PARAMS="ip=$2"
fi
curl -X POST -H 'Authorization: $1' --data '$PARAMS' https://api.lilidns.com/update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment