display dns server
Syntax
View
Parameter
Description
Related command:
Example
display ip host
Syntax
View
Parameter
Description
Example
display dns server [ dynamic ]
Any view
dynamic: Displays the DNS server information dynamically obtained through
DHCP or other protocols
Use the
display dns server
dns server.
# Display the DNS server information.
<Sysname> display dns server
Type:
D:Dynamic
S:Static
DNS Server
Type
IP Address
1
S
169.254.65.125
Table 150 Description on fields of the display dns server command
Field
Description
DNS Server
Sequence number of the DNS server. Configured automatically by the
device, starting from 1.
Type
Type of domain name server: S represents a statically configured DNS
server, and D represents a DNS server obtained dynamically through
DHCP.
IP Address
IP address of the DNS server
display ip host
Any view
None
Use the
display ip host
IP addresses in the static DNS database.
# Display the host names and corresponding IP addresses in the static DNS
database.
<Sysname> display ip host
Host
Age
My
0
Aa
0
command to display the DNS server information.
command to display the host names and corresponding
Flags
Address
static
1.1.1.1
static
2.2.2.4
767