Skip to content

Instantly share code, notes, and snippets.

@andelf
Created June 24, 2013 09:02
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andelf/5848717 to your computer and use it in GitHub Desktop.
Save andelf/5848717 to your computer and use it in GitHub Desktop.
update 3322.org ddns
#!/bin/bash
USERNAME="YOUR_USERNAME"
PASSWORD="YOUR_PASSWORD"
IP=$(curl -s http://ip.3322.net)
HOSTNAME="YOURDOMAIN.3322.org"
DATE=$(date)
RESULT=$(curl -s -u "${USERNAME}:${PASSWORD}" "http://members.3322.net/dyndns/update?hostname=${HOSTNAME}&myip=${IP}&wildcard=OFF&offline=NO")
echo "${DATE}: ${RESULT}" >> /tmp/update3322.log
@andelf
Copy link
Author

andelf commented Jun 24, 2013

更新3322动态域名的脚本。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment