HOWTO: The Computer Classroom July 7, 2001  
 
 

2.1.1 /etc/hosts

One of the first steps to setting up the server is to tweak the network settings. So your server knows the names and addresses of all of the computers on your LAN, I rec-ommend telling it explicitly so that it doesn’t have to query a DNS server for the information. Similar to the list of IPs you printed out at the beginning of the installation, the /etc/hosts file keeps track of name information for the server. What you will want to do is enter all of your workstations’ names and numbers into the server’s /etc/hosts file. To begin editing this file, type:

pico –w /etc/hosts

There should exist an entry in this file for the server machine that looks similar to this:

127.0.0.l localhost.localdomain loghost
192.168.1.1 english.cas.usf.edu

Your job will be to append this file with all of your workstations’ names and IP addresses. For example, if your first workstation is called “homer,” and it has an IP address of 192.168.1.2, then you next line would look like this:

192.168.1.2 homer.cas.usf.edu
192.168.1.3 102.cas.usf.edu
192.168.1.4 103.cas.usf.edu
192.168.1.5 104.cas.usf.edu

You should use a tab between the IP address and the host name. Continue this process until you have entered all of the numbers for all of your workstations. Note: you needn’t enter then numbers in order, but this will help you if you ever need to consult this file in the future.

 
   
 
© 2001 by grlucas.com; all rights reserved