-
-
Save dch/194a144ee26628e71065 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/bash | |
set -euo pipefail | |
hostname="test.austinfanclub.com" | |
# use -s6 and -s4 to ensure that a failed curl causes the script to bail correctly | |
ip6=`curl -s6 http://ipv6.icanhazip.com/` | |
ip4=`curl -s4 http://ipv4.icanhazip.com/` | |
curl \ | |
--user "[email protected]:`pass iwantmyname`" \ | |
"https://iwantmyname.com/basicauth/ddns?hostname=${hostname}&myip=${ip6}" | |
curl \ | |
--user "[email protected]:`pass iwantmyname`" \ | |
"https://iwantmyname.com/basicauth/ddns?hostname=${hostname}&myip=${ip4}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment