Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)
networks(4) OSS Shell and Utilities Reference Manual
NAME
networks - Contains network name information
DESCRIPTION
The /etc/networks file contains information about the known networks that constitute the
DARPA (Defense Advanced Research Projects Agency) Internet. Each network is represented by
a single line in the networks file. The format for the entries in the networks file is as follows:
name number aliases
The fields contain the following:
name The official network name.
number The network number.
aliases The unofficial names used for the network.
Items on a line are separated by one or more spaces or tab characters. Comments begin with a #
(number sign). Routines that search the networks file do not interpret characters from the begin-
ning of a comment to the end of that line. Network numbers are specified in dotted-decimal nota-
tion. A network name can contain any printable character except a field delimiter, newline char-
acter, or comment character (#).
The networks file is normally created from the official network database maintained at the Net-
work Information Center (NIC). The file may need to be modified locally to include unofficial
aliases or unknown networks.
EXAMPLES
Example lines from a networks file are shown below:
loopback 127
arpanet 10 arpa
FILES
/etc/networks Specifies the pathname of the file.
RELATED INFORMATION
Commands: routed(8)
Functions: getnetbyaddr(3), getnetbyname(3), getnetent(3).
Files: hosts(4), protocols(4).
11−30 Hewlett-Packard Company 527188-004