You can configure up to six DNS servers.
You can specify up to ten DNS suffixes.
Displaying and Maintaining IPv4 DNS
Display the static IPv4 domain name
resolution table
Display IPv4 DNS server information
Display DNS suffixes
Display the information of the dynamic
IPv4 domain name cache
Clear the information of the dynamic
IPv4 domain name cache
IPv4 DNS Configuration Examples
Static Domain Name Resolution Configuration Example
Network requirements
As shown in
Figure
can use the domain name host.com to access the host whose IP address is 10.1.1.2.
Figure 1-2 Network diagram for static domain name resolution
Configuration procedure
# Configure a mapping between host name host.com and IP address 10.1.1.2.
<Sysname> system-view
[Sysname] ip host host.com 10.1.1.2
# Use the ping host.com command to verify that the device can use static domain name resolution to
get the IP address 10.1.1.2 corresponding to host.com.
[Sysname] ping host.com
PING host.com (10.1.1.2):
56
data bytes, press CTRL_C to break
Reply from 10.1.1.2: bytes=56 Sequence=1 ttl=128 time=1 ms
Reply from 10.1.1.2: bytes=56 Sequence=2 ttl=128 time=4 ms
To do...
1-2, static domain name resolution is configured on the device and thus the device
Use the command...
display ip host
display dns server [ dynamic ]
display dns domain [ dynamic ]
display dns dynamic-host
reset dns dynamic-host
1-4
Remarks
Available in any view
Available in any view
Available in any view
Available in any view
Available in user view