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 DNS server.
The undo dns server ipv6 source-ip command deletes the source IPv6 address used for the local end functioning as the DNS client to communicate with the DNS server.
By default, no source IPv6 address is configured for the local end functioning as the DNS client to communicate with the DNS server.
dns server ipv6 source-ip ipv6-address [ vpn-instance vpn-instance-name ]
undo dns server ipv6 source-ip [ vpn-instance vpn-instance-name ]
Parameter |
Description |
Value |
---|---|---|
ipv6-address |
Specifies the source IPv6 address for the local end functioning as the DNS client to communicate with the DNS server. |
The value has 128 bits. It is represented as eight groups of four hexadecimal digits with the groups being separated by colons, in the format of X:X:X:X:X:X:X:X. |
vpn-instance vpn-instance-name |
Specifies the name of a VPN instance. |
The value must be an existing VPN instance name. |
Usage Scenario
After the source IPv6 address is specified, the DNS client uses the specified IPv6 address to communicate with the DNS server. This ensures communication security. If no source IPv6 address is specified, the DNS client needs to select a source IPv6 address according to the destination address each time it sends an IPv6 DNS request.
Precautions
If only one route from the DNS server to the client with an IPv6 address is reachable, you need to specify the source IPv6 address in the DNS query message when the DNS client sends a DNS query to the server.
If vpn-instance vpn-instance-name is specified, the specified source IPv6 address is used only when the device communicates with the DNS server bound to the specified VPN instance.