Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/hosts and dynamic ip problems.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
crimson
Guru
Guru


Joined: 27 Apr 2002
Posts: 430
Location: Cedar Rapids, IA

PostPosted: Sat Sep 18, 2004 8:44 am    Post subject: /etc/hosts and dynamic ip problems. Reply with quote

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
View user's profile Send private message
DrWilken
Apprentice
Apprentice


Joined: 12 Dec 2003
Posts: 219
Location: Oelsted ("BeerPlace"), Denmark

PostPosted: Sun Sep 19, 2004 3:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
crimson
Guru
Guru


Joined: 27 Apr 2002
Posts: 430
Location: Cedar Rapids, IA

PostPosted: Sun Sep 19, 2004 5:21 pm    Post subject: Reply with quote

ok. thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum