Skip to content

Instantly share code, notes, and snippets.

@takumaw
Created April 8, 2020 04:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takumaw/5e7d101fa8e5c5e6175bdc78dda74b2f to your computer and use it in GitHub Desktop.
Save takumaw/5e7d101fa8e5c5e6175bdc78dda74b2f to your computer and use it in GitHub Desktop.
noip-dns-update.sh
#!/bin/zsh
USERNAME=""
PASSWORD=""
HOSTNAME=""
curl "https://$USERNAME:$PASSWORD@dynupdate.no-ip.com/nic/update?hostname=$HOSTNAME&myip=$(curl https://ifconfig.me 2> /dev/null),$(curl https://ifconfig.co 2> /dev/null)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment