Last active
September 8, 2016 05:40
-
-
Save homerquan/08aacc86e4ce797cf1dc24f36ec7a81e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
MyGDomain=YOUR DOMAIN | |
Username=YOUR NAME | |
Password=YOUR PASS | |
CurrWANIP=$(wget http://ipinfo.io/ip -qO -) | |
echo "Google Domains DDNS: WAN IP Update into:$CurrWANIP" | |
curl -X POST -d [email protected] -H "User-Agent: curl" -s https://$Username:[email protected]/nic/update?hostname=$MyGDomain&myip=$CurrWANIP | |
echo "Google Domains DDNS: WAN IP update sent" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment