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

Re: Networking question -- UPDATE



> Okay... putting: 24.107.34.126 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? :=)

Mike808/



---------------------------------------------
http://www.valuenet.net



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