if you're having problems with the web ui like i am, this can be an alternative to using backup functionality to update dyndns
First you must already be running raidiator v4 and able to login as root via ssh.
open a file using vi
- Code: Select all
vi foobar
and paste the ff code:
- Code: Select all
#!/bin/bash
wget -q http://checkip.dyndns.com:8245/index.html --output-document=/var/tmp/new.ip
if [ "`cat /var/tmp/new.ip`" = "`cat /var/tmp/old.ip`" ]
then echo;
rm -f /var/tmp/new.ip
else wget -q http://USERNAME:PASSWORD@members.dyndns.org:8245/nic/update?hostname=YOURDYNDNS.ADDRESS.ORG --output-document=/var/tmp/upd.ip
rm -f /var/tmp/old.ip /var/tmp/upd.ip
mv /var/tmp/new.ip /var/tmp/old.ip
fi
replace
USERNAME = dyndns username
PASSWORD = dyndns password
YOURDYNDNS.ADDRESS.ORG = dyndns address (ie infrant.kicks-@$$.org)
make the script executable
- Code: Select all
chmod 700 foobar
you may want to put the script in cron and have it run once a day. if you want it to run on boot-up place the script in /etc/init.d
the script was taken from http://www.nslu2-linux.org and not created by me. cheers!
