display dns server
Syntax
display dns server [ dynamic ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
dynamic: Displays the DNS server information dynamically obtained through DHCP or other protocols
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display dns server to display the IPv4 DNS server information.
Related commands: dns server.
Examples
# Display the IPv4 DNS server information.
<Sysname> display dns server Type: D:Dynamic S:Static DNS Server Type IP Address 1 S 169.254.65.125
Table 21: Command output
Field | Description |
---|---|
DNS Server | Sequence number of the DNS server, configured automatically by the device, starting from 1. |
Type | Type of domain name server:
|
IP Address | IPv4 address of the DNS server. |