< Home

display dns server

Function

The display dns server command displays information about DNS servers.

Format

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

Parameters

Parameter Description Value
vpn-instance vpn-instance-name

Displays information about DNS servers of a specified VPN instance.

The value must be an existing VPN instance name.

all

Displays information about all DNS servers, including both public and private DNS servers.

NOTE:

If neither vpn-instance vpn-instance-name nor all is specified, only information about public DNS servers is displayed.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After configuring DNS server addresses, you can run the display dns server command to view the configuration and sequence of DNS servers.

Example

# Display information about DNS servers.

<HUAWEI> display dns server
IPv4 Dns Servers :
Domain-server        IpAddress
     1               10.16.1.1
     2               10.17.1.1

IPv6 Dns Servers :
Domain-server        Ipv6Address                              (Interface Name)
     1               FC00:1::1                                         

# Display information about the DNS servers of the VPN instance vpn1.

<HUAWEI> display dns server vpn-instance vpn1
IPv4 Dns Servers :
Domain-server        IpAddress           VPN-Instance
     1               172.16.1.1          vpn1
     2               172.16.1.2          vpn1

IPv6 Dns Servers :
No configured servers.
Table 1 Description of the display dns server command output

Item

Description

IPv4 Dns Servers

IPv4 DNS server configuration.

Domain-server

DNS server number, indicating the order in which they were configured.

IpAddress

IP address of the DNS server. During DNS resolution, the first DNS server is used. If this server fails to resolve packets, the second DNS server is used.

The value is set using the dns server command.

IPv6 Dns Servers

IPv6 DNS server configuration.

Ipv6Address

IPv6 address of the IPv6 DNS server.

The value is set using the dns server ipv6 command.

Interface Name

Interface name, which only corresponds to the local IPv6 link address.

The value is set using the dns server ipv6 command.

VPN-Instance

VPN instance name.

The value is set using the dns server command.

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