-
-
Save allenyllee/01ef0908f56c47eea6f41c05d2209de7 to your computer and use it in GitHub Desktop.
Simple bash script to update a dyndns host entry
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/bash | |
HOST=foo.example.com | |
USER= | |
PASS= | |
IPADDR=$(curl -s https://api.ipify.org) | |
RESULT=$(wget -q -O- "https://$USER:[email protected]/nic/update?hostname=$HOST&myip=$IPADDR&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment