[LinuxUsers] Dynamic Public ip readdressing ......
Chris Penn
cantormath at gmail.com
Sat Apr 11 13:18:01 UTC 2009
This isn't a smart thing to do, but I want to know if I can do it.
I have a server that has a public IP address, but it is not static.
Im trying to think of a way to update the /etc/hosts file when this Ip
changes.
It does change often, but it does change from time to time, since this
machine is IP is technically labeled as a workstation.
I realize that when it changes I will need to reset certain services.......
Does anyone have any ideas? I can write the ip address to a file, but
can I get /etc/hosts to read from that file?
I think that is a way to do it, but I'm not sure. Do I need to
install bind? I need to man hosts more.....
chris...
--
"As we open our newspapers or watch our television screens, we seem to
be continually assaulted by the fruits of Mankind's stupidity."
-Roger Penrose
More information about the LinuxUsers
mailing list