Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What should my /etc/hosts file look like
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
dwool
n00b
n00b


Joined: 07 Jan 2005
Posts: 14

PostPosted: Mon Jan 17, 2005 7:36 pm    Post subject: What should my /etc/hosts file look like Reply with quote

it looks like this

[127.0.0.1 localhost
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts]
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Mon Jan 17, 2005 7:39 pm    Post subject: Reply with quote

well, what it should look like depends upon your environment. for starters, are you on a LAN or are you an isolated single user?
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks


Last edited by Bob P on Mon Jan 17, 2005 7:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
unix
l33t
l33t


Joined: 06 Jul 2003
Posts: 615
Location: Dürnten ZH Switzerland

PostPosted: Mon Jan 17, 2005 7:39 pm    Post subject: Reply with quote

i have

Code:

127.0.0.1   localhost  psycho


my hostname is psycho
Back to top
View user's profile Send private message
SweepingOar
Apprentice
Apprentice


Joined: 31 Dec 2003
Posts: 263
Location: LA

PostPosted: Mon Jan 17, 2005 7:44 pm    Post subject: Reply with quote

That looks ok. Mine is the same and I can connect to the machine with a browser to see the test apache page (you have to emerge apache to get that to work) and also connect via ssh (I installed that too). There is some part of the install process where you give the machine a name and that ends up going on the end of the 127.0.0.1 line, but that might not even be necessary. I think those options are set around the section of the install doc that covers ifconfig and networking.

Once you set up domains that the machine is supposed to handle I think at least one of them go in etc/hosts and the rest go in the virtual hosts file.
_________________
-SweepingOar
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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