Skip to content

Update script EveryDNS

2007 September 13
tags: ,
by Philippe Delodder

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

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS

Bad Behavior has blocked 203 access attempts in the last 7 days.