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
mdc-admin
mdc-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 information.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, this command displays IPv4 DNS server information for the public network.
Examples
# Display IPv4 DNS server information for 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 26: Command output
Field | Description |
---|---|
No. | Sequence number. |
Type | DNS server type:
|
IP address | IPv4 address of the DNS server. |
Related commands
dns server