HOSTS(5) Series 300 Only HOSTS(5)
NAME
hosts - host name data base
HP-UX COMPATIBILITY
Level: HP-UX/NON-STANDARD
Origin: UCB
Remarks: Implemented on the Series 300 only.
DESCRIPTION
This file associates internet addresses with official host
names and aliases. This allows a user to refer to a host by
a mneumonic name instead of an internet address.
Note: Some services require host information to be contained
in this file.
For each host a single line should be present with the
following information:
<internet address> <official host name> <aliases>
Aliases are other names under which a host is also known.
They can substitute for the official host name in most
commands. For example:
192.45.36.5 hpdxsg testhost
So, in this example, users can remote login to hpdxsg by
using the command:
rlogin testhost
instead of
rlogin hpdxsg
A line cannot start with a space. Items are separated by
any number of blanks and/or tab characters. A `#' indicates
the beginning of a comment; characters from the `#' up to
the end of the line are not interpreted by routines which
search the file. Trailing blanks or tabs are allowed at the
end of a line.
For the DARPA Internet network this file is normally created
from the official host data base maintained at the Network
Information Control Center (NIC), although local changes may
be required to bring it up to date regarding unofficial
aliases and/or unknown hosts.
Network addresses are specified in the conventional internet
Hewlett-Packard - 1 - (printed 7/16/86)
HOSTS(5) Series 300 Only HOSTS(5)
`.' notation using the inet_addr() routine from the internet
address manipulation library, inet(3N). Host names may
contain any printable character other than a white space,
newline, or comment character.
EXAMPLES
See /etc/hosts.
SEE ALSO
gethostent(3N).
Hewlett-Packard - 2 - (printed 7/16/86)