Skip to main content

Syntax and Conventions

; (semicolon)      is used to denote the beginning of a comment.
Any text on a given line following a ';' is
comment, and not part of the host table.

NET keyword introducing a network name/address entry

GATEWAY keyword introducing a gateway name/address entry

HOST keyword introducing a host name/address entry

: (colon) is used as a field delimiter

:: (2 colons) indicates a null field

, (comma) is used as a data element delimiter

XXX/YYY indicates protocol information of the type
TRANSPORT/SERVICE.

where TRANSPORT/SERVICE options are specified as

"FOO/BAR" - both transport and service known
"FOO" - transport known; services not known or not
running, OR
"BAR" - name is known, what it does is not

NOTE: See Appendices B and C for specific options and acronyms.

Each host table entry is an ASCII text string comprised of 6 fields, where

Field 1 = KEYWORD indicating whether this entry pertains
to a NET, GATEWAY, or HOST. NET entries cannot have
alternate addresses or nicknames.
Field 2 = Internet Address of Network, Gateway, or Host
followed by alternate addresses
Field 3 = Official Name of Network, Gateway, or Host
(with optional nicknames)
Field 4 = Machine Type
Field 5 = Operating System
Field 6 = Protocol List

Fields 4, 5 and 6 are optional.

Fields 3-6, if available, pertain to the first address in Field 2.

'Blanks' (spaces and tabs) are ignored between data elements or fields, but are disallowed within a data element.

Each entry ends with a colon.

The host table will be sorted by internet address.