HP-UX LAN Administrator's Guide (Feburary 2007)

Table Of Contents
Manually Installing and Configuring HP-UX LANDRAFT COPY
Creating the /etc/hosts File
Chapter 430
Comments are allowed and designated by a pound sign (#) preceding the comment text.
Trailing blank and tab characters are allowed.
Blank line entries are allowed.
Only one host entry per line is allowed.
/etc/hosts Permissions
HP recommends that the /etc/hosts file be owned by user root and have 0x444
(-r--r--r--) access permission. For more information on /etc/hosts, refer to the hosts(4)
man page in the HP-UX Reference Pages.
NOTE HP highly recommends that you limit access to the /etc/hosts file by setting
the permission to 0x444 (-r-—r-—r--) for read access only.
/etc/hosts Example
The following /etc/hosts entry contains an IP address, hostname, and alias names
(host3.site2.region4 and grace).
192.6.1.1 host3 host3.site2.region4 grace