The /etc/X0.hosts
file is an ASCII text file containing the hostnames of each remote
host permitted to access your local server.
If you are running as a stand-alone
system, you must have your system's name in this file.
If you are part of a network, the other system names
must be included.
The syntax is as follows:
For example, if you are hpaaaaa,
and regularly ran clients on hpccccc,
and hpddddd,
you would want the following lines.
Note that aliases work as well as hostnames, provided they
are valid, that is, commonly known across the network.
Using an /etc/hosts
File |
 |
This file need not be present if your system is configured
to query a nameserver.
The /etc/hosts
file is an ASCII text file containing a list of all the host names
and internet addresses known to your system, including your own
system.
If your system is not connected to a network, use the loopback
address (127.0.0.1)
and the hostname unknown:
For a local system to access a remote host:
The address and hostname of the remote
host must be listed in the local system's /etc/hosts
file.
The user must have a valid login (username and password)
and home directory on the remote host.