Skip to content

Instantly share code, notes, and snippets.

@xoxefdp
Forked from Mic92/update-dnsdynamic.sh
Last active June 23, 2018 10:22
Show Gist options
  • Save xoxefdp/f1fbe202d5a8861574e8bba27c13e5b9 to your computer and use it in GitHub Desktop.
Save xoxefdp/f1fbe202d5a8861574e8bba27c13e5b9 to your computer and use it in GitHub Desktop.
Update Public Ip on dnsdynamic.com
#!/bin/sh
# EDIT this
[email protected]
PASSWORD=yoursecret
DOMAIN=example.dnsd.me
IP=`curl --silent -k https://myip.dnsdynamic.com/`
curl --silent --user "$EMAIL:$PASSWORD" -k "https://www.dnsdynamic.org/api/?hostname=$DOMAIN&myip=$IP"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment