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 le 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 le. The format for the entries in the networks le is as follows:
name number aliases
The elds contain the following:
name The ofcial network name.
number The network number.
aliases The unofcial 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 le do not interpret characters from the begin-
ning of a comment to the end of that line. Network numbers are specied in dotted-decimal nota-
tion. A network name can contain any printable character except a eld delimiter, newline char-
acter, or comment character (#).
The networks le is normally created from the ofcial network database maintained at the Net-
work Information Center (NIC). The le may need to be modied locally to include unofcial
aliases or unknown networks.
EXAMPLES
Example lines from a networks le are shown below:
loopback 127
arpanet 10 arpa
FILES
/etc/networks Species the pathname of the le.
RELATED INFORMATION
Commands: routed(8)
Functions: getnetbyaddr(3), getnetbyname(3), getnetent(3).
Files: hosts(4), protocols(4).
1130 Hewlett-Packard Company 527188-004