||07-21-2010 09:23 AM
/etc/hosts setup--3 questions
1) I'm not sure which IP address to use when I list my machine name in /etc/hosts, particularly after reading:
By the w]ay, Arnt Gulbrandsen <firstname.lastname@example.org> says that 127.0.0.1 # should NEVER be named with the name of the machine. It causes problems # for some (stupid) programs, irc and reputedly talk. :^)
Here's what I have now:
root@eagleswing:~# cat /etc/HOSTNAME
root@eagleswing:~# cat /etc/hosts
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server. Just add the names, addresses
# and any aliases to this file...
# By the way, Arnt Gulbrandsen <email@example.com> says that 127.0.0.1
# should NEVER be named with the name of the machine. It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
# For loopbacking.
# End of hosts.
2) Also, I want to connect my computers at home & I'm not sure how to go about it. I found the following link for my belkin router: http://192.168.2.1/
I'm not certain how to include my router in /etc/hosts so I can use it to link my PCs as stated above. I was thinking of writing (see above link):
Will this work & is it proper?
3) Do I need to make use of any other IP addresses at this link? What are the WAN IP & Default Gateway addresses used for? I am going to be serving documents & running scripts on Apache.
Edit: when I run hostname -f I get: "Unknown host".