Update script EveryDNS
2007 September 13
Here is my small bash script to update the EveryDNS services
#!/bin/bashDOMAIN="example.com"USER="username"PASS="password"VER="0.1"IP=$(curl -s http://myip.dk/ | egrep -m1 -o '[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}')if [ -r "/tmp/oldip.txt" ]; thenOLDIP=`cat /tmp/oldip.txt`if [ "$OLDIP" = "$IP" ]; then exit 0; fifiecho $IP > /tmp/oldip.txtwget -q --http-user="${USER}" --http-passsword="${PASS}" "http://dyn.everydns.net/index.php?ver=${VER}&ip=${IP}&domain=${DOMAIN}" -O -
You can download it here
No comments yet