11-5
z
You can configure up to six DNS servers, including those with IPv6 addresses.
z
You can specify up to ten DNS suffixes.
Configuring the DNS Proxy
Follow these steps to configure the DNS proxy:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enable DNS proxy
dns proxy enable
Required
Disabled by default.
Specify a DNS server
dns server
ip-address
Required
Not specified by default.
Displaying and Maintaining IPv4 DNS
To do…
Use the command…
Remarks
Display the static IPv4 domain name
resolution table
display ip host
Available in any view
Display IPv4 DNS server information
display dns server
[
dynamic
]
Available in any view
Display DNS suffixes
display dns domain
[
dynamic
]
Available in any view
Display the information of the dynamic
IPv4 domain name cache
display dns dynamic-host
Available in any view
Clear the information of the dynamic IPv4
domain name cache
reset dns dynamic-host
Available in user view
IPv4 DNS Configuration Examples
Static Domain Name Resolution Configuration Example
Network requirements
As shown in
, static domain name resolution is configured on the Switch and thus the
Switch can use the domain name host.com to access the host whose IP address is 10.1.1.2.