137
If you do not specify an IPv6 address, the undo ipv6 dns server command removes all DNS server
IPv6 addresses for the public network or the specified VPN instance.
Examples
# Specify DNS server IPv6 address 2002::1 for the public network.
<Sysname> system-view
[Sysname] ipv6 dns server 2002::1
Related commands
display ipv6 dns server
ipv6 dns spoofing
Use ipv6 dns spoofing to enable DNS spoofing and specify the IPv6 address to spoof DNS
requests.
Use undo ipv6 dns spoofing to disable DNS spoofing.
Syntax
ipv6 dns spoofing ipv6-address [ vpn-instance vpn-instance-name ]
undo ipv6 dns spoofing ipv6-address [ vpn-instance vpn-instance-name ]
Default
DNS spoofing is disabled.
Views
System view
Predefined user roles
network-admin
Parameters
ipv6-address: Specifies the IPv6 address used to spoof DNS requests.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a
case-sensitive string of 1 to 31 characters. To enable DNS spoofing for the public network, do not
specify this option.
Usage guidelines
Use the ipv6 dns spoofing command together with the dns proxy enable command.
DNS spoofing functions when the DNS proxy does not know the DNS server address or cannot
reach the DNS server. It enables the DNS proxy to spoof DNS queries of type AAAA by responding
with the specified IPv6 address.
The system allows only one replied IPv6 address for the public network or each VPN instance. If you
execute this command multiple times, the most recent configuration takes effect. You can configure
DNS spoofing for both public network and VPN instances.
Examples
# Enable DNS spoofing for the public network and specify IPv6 address 2001::1 for spoofing DNS
requests.
<Sysname> system-view
[Sysname] dns proxy enable
[Sysname] ipv6 dns spoofing 2001::1