TCPIP$UCP_HELP.HLB  —  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 ]

1  –  Restrictions

    Requires read, write, and delete access to the hosts database.

2  –  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.

3  –  Qualifiers

3.1    /ADDRESS

       /ADDRESS=IP_address

    Required SET HOST.

    Host's IP address.

3.2    /ALIAS

       /ALIAS=alias
       /NOALIAS=alias

    Optional.

    Add or remove an alternate name for a host.

    Do not use with SET NOHOST.

3.3    /CONFIRM

       /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:

    TCPIP>  SET NOHOST MOA /ADDRESS=11.33.33.8 /CONFIRM

         LOCAL database

    Host address    Host name

    11.33.33.8 MOA
    Remove? [N]:

    If you specify the /NOCONFIRM qualifier, the operation is
    performed without asking you to confirm the request.

4  –  Examples

    1.TCPIP> SET HOST MOA /ADDRESS=11.33.33.8 -
      _TCPIP> /ALIAS=("moa","bigbrd","nofly")

      Sets the IP address of host MOA to 11.33.33.8 and establishes
      moa, bigbrd, and nofly as aliases for host MOA.

    2.TCPIP> SET HOST MOA /ALIAS="MOA_2"

      Establishes MOA_2 as an alias for host MOA.

    3.TCPIP> SET HOST MOA /ADDRESS = 128.33.33.9

      Establishes a second IP address for host MOA.

    4.TCPIP> SET HOST MOA /ADDRESS = 128.33.33.9 /ALIAS="MOA_3"

      Establishes MOA_3 as an alias for host MOA's second IP address
      128.33.33.9.

    5.TCPIP> SET HOST MOA /NOALIAS="MOA_2"

      Deletes MOA_2 as an alias for host MOA.

    6.TCPIP> SET NOHOST MOA /NOCONFIRM

      Deletes MOA and all of its associated aliases.
Close Help