addhost - add and modify an entry in the host file.
/usr/sysadm/privbin/addhost -i ipAddress -h hostName [-f]
Addhost adds or modifies an entry in the host file. The entry is added to
the end of /etc/hosts. If the hostname already exists, the entry is
modified to use the new IP address. If the IP address already exists, the
hostname is updated to use the new hostname.
The ipAddress should be in dotted notation, e.g. 184.108.40.206.
The hostName can be just the name, e.g. foo, or a fully
qualified name, e.g. foo.company.com.
-f If this flag is not used, the entry is not added when the entry
exists remotely. If this flag is used, the entry is added
without checking for remote existance.
/etc/hosts System host name file
sysmgr(1M), runpriv(1M), hosts(4).
PPPPaaaaggggeeee 1111 [ Back ]