< Home

display ip host

Function

The display ip host command displays the static DNS entries.

Format

display ip host [ vpn-instance vpn-instance-name | all ]

Parameters

Parameter Description Value
vpn-instance vpn-instance-name

Displays static DNS entries of a specified VPN instance.

The value must be an existing VPN instance name.

all

Displays all static DNS entries, including both public and private static DNS entries.

NOTE:

If neither vpn-instance vpn-instance-name nor all is specified, only public static DNS entries are displayed.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After running the ip host command to configure static DNS entries, you can run this command to check whether mappings between host names and IP addresses are correct. You can run the display ip host command to view static DNS entries.

Example

# Display static DNS entries.

<HUAWEI> display ip host
Host                 Age        Flags  Address                                  
www.3322.org         0          static 10.1.1.1                                 
members.3322.org     0          static 10.1.2.1                                 
checkip.dyndns.com   0          static 10.1.3.1                                 
members.dyndns.org   0          static 10.1.4.1

# Display static DNS entries of VPN instance vpn1.

<HUAWEI> display ip host vpn-instance vpn1
Host           Age         Flags      Address        VPN-Instance
RTB            0           static     10.1.5.1       vpn1
Table 1 Description of the display ip host command output

Item

Description

Host

Host name.

The value is set using the ip host command.

Age

Aging time. The value 0 indicates a static DNS entry. Static entries are not aged out.

Flags

Status of the domain name. The value static indicates a static domain name.

Address

IP address mapping the domain name.

The value is set using the ip host command.

VPN-Instance

VPN instance name.

The value is set using the ip host command.

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