9
Mar

I'm in the middle of configuring a Ubuntu 8.04 LTS server. I'm on the step where I’ve to configure the /etc/hosts file, and frankly, I'm stuck.

Heres what I'm looking at:

127.0.0.1 localhost
127.0.1.1 server1.Belkin server1
# The following lines are desirable for IPv6 capable hosts
::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

I need to know what I need to fill in here. The guide I'm using says it should look something like this:

127.0.0.1 localhost.localdomain localhost
192.168.0.100 server1.example.com server1
# The following lines are desirable for IPv6 capable hosts
::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

I'm not sure what to fill in for the first and second lines.

Thanks


Answer:
Your first line should be the same as the example:
127.0.0.1 localhost.localdomain localhost
You second line should have your local ip address. if you type into a terminal :
ifconfig
copy the number you see after inet addr something like 192.168.0.1 and the remainder of the line should be your hostname, (whatever ever you get when you type hostname in the terminal).

This entry was posted on Monday, March 9th, 2009 at 7:25 am and is filed under Computer Networking. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or TrackBack URI from your own site.

Leave a reply

Name (*)
Mail (*)
URI
Comment