System Administration Guide: IP Services

/etc/inet/hosts File Format

The /etc/inet/hosts file uses the basic syntax that follows. Refer to the hosts(4) man page for complete syntax information.

IPv4-address hostname [nicknames] [#comment]


Contains the IPv4 address for each interface that the local host must recognize.


Contains the host name that is assigned to the system at setup, plus the host names that are assigned to additional network interfaces that the local host must recognize.


Is an optional field that contains a nickname for the host.


Is an optional field for a comment.