Skip to content

Instantly share code, notes, and snippets.

@allenyllee
Forked from kylegibson/dynupdate.sh
Last active September 2, 2018 13:38
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 allenyllee/01ef0908f56c47eea6f41c05d2209de7 to your computer and use it in GitHub Desktop.
Save allenyllee/01ef0908f56c47eea6f41c05d2209de7 to your computer and use it in GitHub Desktop.
Simple bash script to update a dyndns host entry
#!/bin/bash
HOST=foo.example.com
USER=
PASS=
IPADDR=$(curl -s https://api.ipify.org)
RESULT=$(wget -q -O- "https://$USER:$PASS@members.dyndns.org/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