[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Networking question -- UPDATE

> Okay... putting: bruneworld.com
> in my /etc/hosts file has fixed ALL of my problems.
> ...
> Now my only problem is figuring out how to update the hosts file
> automatically when my IP changes.  8-(

OLD_IP=`echo $OLD_IP | sed -e 's/\./\\./g'`
sed -e 's/$OLD_IP/$NEW_IP/' </etc/hosts

Um, what did you say your *only* problem was? :=)



To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.