View previous topic :: View next topic |
Author |
Message |
crimson Guru
Joined: 27 Apr 2002 Posts: 430 Location: Cedar Rapids, IA
|
Posted: Sat Sep 18, 2004 8:44 am Post subject: /etc/hosts and dynamic ip problems. |
|
|
my ip address changes every so often, although I'm on a cable connection. How do I manage my /etc/hosts file to deal with this? I don't want to manually edit that file every time I boot into linux. |
|
Back to top |
|
|
DrWilken Apprentice
Joined: 12 Dec 2003 Posts: 219 Location: Oelsted ("BeerPlace"), Denmark
|
Posted: Sun Sep 19, 2004 3:28 pm Post subject: |
|
|
In your /etc/hosts file do like this:
Code: |
127.0.0.1 localhost your_hostname
|
That's it... DON'T ADD another line for your "outside" ip. _________________ -=[DrWilken]=-
ASUS AT5IONT-I (64bit Dual Core Atom D525 processor with Nvidia ION(2) GPU) running Gentoo Linux... Latest and Greatest...
tux-power.dk |
|
Back to top |
|
|
crimson Guru
Joined: 27 Apr 2002 Posts: 430 Location: Cedar Rapids, IA
|
Posted: Sun Sep 19, 2004 5:21 pm Post subject: |
|
|
ok. thanks. |
|
Back to top |
|
|
|