Configuring DNS spoofing

DNS spoofing is effective only when:

Follow these guidelines when you configure DNS spoofing:

To configure DNS spoofing:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enable DNS proxy.

dns proxy enable

By default, DNS proxy is disabled.

3. Enable DNS spoofing and specify the IP address used to spoof DNS requests.

  • Specify an IPv4 address:
    dns spoofing
    ip-address

  • Specify an IPv6 address:ipv6 dns spoofing ipv6-address

By default, DNS spoofing is disabled.

You can specify both an IPv4 address and an IPv6 address.