display dns server
Use display dns server to display IPv4 DNS server information.
Syntax
display dns server [ dynamic ] [ vpn-instance vpn-instance-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
dynamic: Displays IPv4 DNS server information dynamically obtained through DHCP or other protocols. If you do not specify this keyword, the command displays statically configured and dynamically obtained IPv4 DNS server addresses.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. To display IPv4 DNS server information for the public network, do not use this option.
Examples
# Display IPv4 DNS server information about the public network.
<Sysname> display dns server Type: D: Dynamic S: Static No. Type IP address 1 S 202.114.0.124 2 S 169.254.65.125
Table 24: Command output
Field | Description | |
---|---|---|
No. | Sequence number. | |
Type | DNS server type:
| |
IP address | IPv4 address of the DNS server. |
Related commands
dns server