Technical data

SET HOST
SET HOST
Defines or deletes an entry in the hosts database.
Equivalent to maintaining the
/etc/hosts
file on UNIX hosts.
Related command: SHOW HOST, CONVERT/VMS HOST
Format
SET [NO]HOST host
/ADDRESS=IP_address
[ /[NO]ALIAS=alias ]
[ /[NO]CONFIRM ]
Restrictions
Requires read, write, and delete access to the hosts database.
Parameters
host
Required.
Name of a host that is a source or destination of Internet communications.
Note
If you define a mixed-case name, also define an alias in either all
uppercase or all lowercase characters.
You cannot delete a host by specifying its alias.
Qualifiers
/ADDRESS=IP_address
Required SET HOST.
Host’s IP address.
/ALIAS=alias
/NOALIAS=alias
Optional.
Add or remove an alternate name for a host.
Do not use with SET NOHOST.
/CONFIRM
/NOCONFIRM
Optional. Default: /CONFIRM if you use a wildcard.
Used with the SET NOHOST command, prompts you to confirm the delete
request. For example:
Command Descriptions 2–121