display ip host

Function

The display ip host command displays the mappings between host names and IP addresses.

Format

display ip host [ vpn-instance vpn-name ]

Parameters

Parameter Description Value
vpn-instance vpn-name

Specifies the VPN to be displayed.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
dns read

Usage Guidelines

Usage Scenario

After configuring static DNS entries, you can run the display ip host command to view the mappings between host names and IP addresses.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display the mappings between the domain names and IP addresses in the VPN named vpn1.
<HUAWEI> display ip host vpn-instance vpn1
Host          Age       Flags           Address
hw              0       static          10.1.1.1
gww             0       static          192.168.1.1
# Display the mappings between host names and IP addresses.
<HUAWEI> display ip host
Host          Age       Flags           Address
hw            0         static          10.1.1.1
gww           0         static          192.168.1.1
Table 1 Description of the display ip host command output
Item Description
Host

Host name.

Age

Aging time of a DNS entry. The value is 0 for static DNS entries, indicating that static DNS entries do not age.

Flags

Flag of a DNS entry. The value is Static for static DNS entries.

Address

IP address corresponding to a host name.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >