Configuring the DNS Proxy
Follow these steps to configure the DNS proxy:
To do...
Enter system view
Enable DNS proxy
Displaying and Maintaining DNS
Display the static domain name
resolution table
Display DNS server information
Display domain name suffixes
Display the information of the dynamic
domain name cache
Clear the information of the dynamic
domain name cache
DNS Configuration Examples
Static Domain Name Resolution Configuration Example
Network requirements
Switch uses the static domain name resolution to access Host with IP address 10.1.1.2 through domain
name host.com.
Figure 1-3 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
# Execute the ping host.com command to verify that the Switch can use the 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):
system-view
dns proxy enable
To do...
Use the command...
Use the command...
display ip host
display dns server [ dynamic ]
display dns domain [ dynamic ]
display dns dynamic-host
reset dns dynamic-host
1-5
Remarks
—
Required
Disabled by default.
Remarks
Available in
any view
Available in
any view
Available in
user view