Created
September 4, 2012 12:00
-
-
Save Mic92/3620608 to your computer and use it in GitHub Desktop.
Update Public Ip on dnsdynamic.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# EDIT this | |
[email protected] | |
PASSWORD=yoursecret | |
DOMAIN=example.dnsd.me | |
IP=`curl --silent http://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
you could also let curl make an https call to obtain your IP adding -k to the first curl call, the same option you did on the last line, so everything goes over https.