Configuring the DNS proxy
Follow these steps to configure the DNS proxy:
To do...
Enter system view
Enable DNS proxy
Specify a DNS
server
NOTE:
You can specify multiple DNS servers by using the dns server command repeatedly. Upon receiving a
name query request from a client, the DNS proxy forwards the request to each of the specified DNS
servers in turn. A DNS server configured in system view has a higher priority than the DNS server
configured in interface view. That is, the request is first forwarded to each DNS server configured in
system view. If no reply is obtained, the request is then sent to each DNS server configured in interface
view in turn.
Configuring DNS spoofing
Configuration prerequisites
DNS spoofing is effective only when:
The DNS proxy is enabled on the switch.
No DNS server or route to any DNS server is specified on the switch.
Configuration procedure
Follow these steps to configure DNS spoofing:
To do...
Enter system view
Enable DNS spoofing and specify the
translated IP address
Displaying and maintaining IPv4 DNS
To do...
Display the static IPv4 domain name
resolution table
Use the command...
system-view
dns proxy enable
System view
dns server ip-address
interface interface-type interface-
number
Interface view
dns server ip-address
Use the command...
display ip host [ | { begin | exclude |
include } regular-expression ]
Use the command...
system-view
dns spoofing ip-address
83
Remarks
—
Required
Disabled by default.
Required
Configure the DNS server in at
least one view.
No DNS server is specified by
default.
Remarks
—
Required
Disabled by default.
Remarks
Available in any view