dyns.net update Script

{CODE(colors=>BASH)}

!/bin/sh

dyns-net can be stored in /etc/ppp/ip-up.d/ and it will be run

everytime you connect to the Net.

Update dyns.net account with valid IP

(c) Eduard_Mann aT web dOt de

host="VALID HOST" user="YOUR USERNAME" pass="YOUR PASS" last_stat="/tmp/last_dyns.net" stat="/var/log/dyns.net"

if wget -q -O $last_stat \ http://www.dyns.net/postscript011.php?username=$user\&password=$pass\&host=$host; \ then date +%D\ %R >> $stat cat $last_stat >> $stat /bin/echo -e "\n" >> $stat else date +%D\ %R >> $stat /bin/echo -e "Error while trying update for $host\n" >> $stat fi