Skip to content

Instantly share code, notes, and snippets.

@Mic92
Created September 4, 2012 12:00
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Mic92/3620608 to your computer and use it in GitHub Desktop.
Save Mic92/3620608 to your computer and use it in GitHub Desktop.
Update Public Ip on dnsdynamic.com
#!/bin/sh
# EDIT this
EMAIL=youremail@example.com
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"
@xoxefdp
Copy link

xoxefdp commented Jun 23, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment