display dns server

Function

The display dns server command displays the IP addresses of DNS servers.

Format

display dns server [ vpn-instance vpn-instance-name ]

Parameters

Parameter Description Value
vpn-instance vpn-instance-name

Specifies the name of a VPN instance.

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 the IP addresses of DNS servers, you can run the display dns server command to check whether the configuration is successful.

Example

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

# Display the IP addresses configured for DNS servers.
<HUAWEI> display dns server
IPv4 Dns Servers :
Domain-server        IpAddress
            1        172.16.1.1
            2        172.16.1.2
IPv6 Dns Servers :
Domain-server Ipv6Address            Interface Name
     1        2001:DB8::1
     2        2001:DB8::2
Table 1 Description of the display dns server command output
Item Description
IPv4 Dns Servers

IPv4 DNS server.

Domain-server

Configuration sequence of a DNS server.

IpAddress

IP address of a DNS server. In domain name resolution, DNS servers are queried in sequence.

IPv6 Dns Servers

Indicates the configuration of the IPv6 DNS server.

Ipv6Address

IPv6 address of the domain name server.

Interface Name

Interface name (only for IPv6 link local address).

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