ONTAP 9.12.1 commands

50←PDF
  • ONTAP 9.12.1 commands(CA08871-263en.pdf)
  • vserver services name-service dns hosts show

    Display IP address to hostname mappings

    Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

    Description

    Use the vserver services name-service dns hosts show command to display Domain Name System (DNS) host table entries. These entries map hostnames to IP addresses. Entries may also include alternate hostnames, known as aliases. Host table entries enable you to refer to other Internet hosts by a memorable name instead of by a numeric IP address. This host table is similar to the /etc/hosts file found on most UNIX style systems.

    Parameters

    { [-fields <fieldname>,…​]

    If you specify the -fields <fieldname>, …​ parameter, the command output also includes the specified field or fields. You can use '-fields ?' to display the fields to specify.

    | [-instance ] }

    If you specify the -instance parameter, the command displays detailed information about all fields.

    [-vserver <vserver name>] - Vserver

    Use this parameter to display information only about host table entries on the Vservers you specify.

    [-address <IP Address>] - IP Address

    Use this parameter to display information only about host table entries that match the IP addresses you specify.

    [-hostname <text>] - Canonical Hostname

    Use this parameter to display information only about host table entries that match the hostnames you specify.

    [-aliases <text>,…​] - Aliases

    Use this parameter to display information only about host table entries that include the alternate hostnames you specify.

    Examples

    The following example shows a typical host table.

    cluster1::> vserver services name-service dns hosts show
    Vserver    Address        Hostname        Aliases
    ---------- -------------- --------------- ----------------------
    vs1      10.0.0.10      mail.example.com
                                              mail, mailhost, snmp
    vs1      10.0.0.15      ftp.example.com ftp
    vs1      10.0.0.16      www.example.com www
    vs2      10.0.0.10      mail.example.com
                                              mail, mailhost, snmp
    vs2      10.0.0.15      ftp.example.com ftp
    vs2      10.0.0.16      www.example.com www
    vs2      10.0.0.17      test.example.com
    7 entries were displayed.
    Top of Page