dns server ipv6 source-ip
Function
The dns server ipv6 source-ip command configures the source IPv6 address for the local end functioning as the DNS client to communicate with the IPv6 DNS server.
The undo dns server ipv6 source-ip command deletes the source IPv6 address for the local end functioning as the DNS client to communicate with the IPv6 DNS server.
By default, no source IPv6 address is configured for the local end functioning as the DNS client to communicate with the IPv6 DNS server.
Usage Guidelines
Usage Scenario
After the source IPv6 address of the local device is specified, the device uses the specified source IPv6 address to communicate with the IPv6 DNS server to ensure the security check. The DNS server returns the request for a domain name to the local device along the specified route. If no source IPv6 address is configured, the DNS client needs to select a source IPv6 address according to the destination address each time it sends an IPv6 DNS request.
Precautions
To make the command take effect, pay attention to the following points:
If the DNS server has only one reachable route containing a specified destination IPv6 address to the device, you need to specify the source IPv6 address in the DNS query request sent from the device to the DNS server.
Ensure that the source IPv6 address is the IPv6 address of an interface or logical interface on the device, and there are reachable routes between the interface and the DNS server.
Ensure that the source IPv6 address and the IPv6 address of the DNS server are on the same VPN or public network.