Use google...
ez-ipupdate or ddclient
_OR_
this script makes use of nslookup, lynx, and dyndnsupdate.
#!/bin/sh
# This script uses "dyndnsupdate" available at
http://www.bebits.com/app/2927
# HOSTNAME is your DynDNS hostname
HOSTNAME=your_hostname.dyndns.org
# NSLOOKUP is the current DNS entry for your DynDNS hostname
NSLOOKUP=`/usr/bin/nslookup -sil $HOSTNAME | tail -2 | head -1 | cut -d"
" -f2`
# CURRENT_IP is your router's current IP
CURRENT_IP=`/usr/bin/lynx -dump
http://www.netins.net/dialup/tools/my_ip.shtml | grep -A2 "Your current
IP Address is:" | tail -n1 | tr -d ' '`
# Is CURRENT_IP returning "unknown"?
if [ "$CURRENT_IP" = "unknown" ] ; then
exit
fi
# Is our current IP in the DynDNS DNS records? If not, update them.
if [ "$NSLOOKUP" != "$CURRENT_IP" ] ; then
/sbin/dyndnsupdate -a $CURRENT_IP -h your_hostname.dyndns.org -m \
your_hostname's_mail_exchange.dyndns.org -s statdns \
-u dyndns.org_username:dyndns.org_password
# Flush local DNS cache of $HOSTNAME
/sbin/service named restart
fi
Take a look at the first two before using this script.
--
Tasos Varoudis | [EMAIL PROTECTED] / rm '_XX'
Architecture Engineer | http://www.daemons.gr/
phone: +3-210-9949406 | 23 Mixalakopoulou str, Argiroupoli
mobile: +3-694-4663268 | 16451, Athens, GREECE