Getting Linux Connected, using Ethernet and TCP/IP

Giving remote machines names


Host Names

People don't cope with remembering numbers very well. Particularly a large number of them (both people, and numbers).

TCP/IP based systems allow the association of names with IP addresses, to allow people to use the name of a machine, not its IP address.

These names are called Host names.

There are 3 ways of associating a name with an IP address :

This simplest way is to add an entry into the /etc/hosts file.

/etc/hosts

The /etc/hosts file is a text file containing mappings between IP addresses and host names.

Each line in the /etc/hosts file has the following format :

<IP Address> <hostname>

You can add as many entries as you like to this file, for both local and remote machines.


[Previous Page] | [Next Page] | [Start of Current Topic] | [Previous Topic] | [Next Topic]

LinuxSA - http://www.linuxsa.org.au

Prepared by Mark Smith
marks@senet.com.au

Fri Feb 20 13:28:08 CST 1998