dns server ipv6 source-ip

Function

The dns server ipv6 source-ip command specifies a source IPv6 address to be used by an IPv6 DNS client for domain name resolution.

The undo dns server ipv6 source-ip command deletes the source IPv6 address used by an IPv6 DNS client for domain name resolution.

By default, no source IPv6 address is specified for an IPv6 DNS client for domain name resolution.

Format

dns server ipv6 source-ip ipv6Addr

dns server ipv6 source-ip vpn-instance vpn-name ipv6Addr

undo dns server ipv6 source-ip [ vpn-instance vpn-name ] [ ipv6Addr ]

Parameters

Parameter Description Value
ipv6Addr

Specifies a source IPv6 address to be used by an IPv6 DNS client for domain name resolution.

The address is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

vpn-instance vpn-name

Specifies the VPN to be displayed.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dns write

Usage Guidelines

Usage Scenario

When dynamic DNS is used, run the dns server ipv6 source-ip command to specify a source IPv6 address for an IPv6 DNS client. The client then uses this source IPv6 address to communicate with an IPv6 DNS server, which ensures security. The IPv6 DNS server then sends a response to the IPv6 DNS client through the route to the source IPv6 address. If no source IPv6 address is specified, an IPv6 DNS client selects a source address based on the destination address for each IPv6 DNS domain name resolution request.

Prerequisites

Before the dns server ipv6 source-ip command is run, perform the following operations:

1.Dynamic DNS has been enabled using the dns resolve command in the system view.

2.A DNS server address has been configured using the dns server ipv6 command in the system view.

Follow-up Procedure

After the dns server ipv6 source-ip command is run, perform the following operations to implement dynamic DNS:

run the dns domain command to configure the domain name suffix.

Example

# Specify 2001:db8::1/64 as the source IP address to be used by the local router in the VPN named vpn1.
<HUAWEI> system-view
[~HUAWEI] dns server ipv6 source-ip 2001:db8::1
# Specify 2001:db8::2/64 as the source IPv6 address to be used by an IPv6 DNS client for domain name resolution.
<HUAWEI> system-view
[~HUAWEI] dns server ipv6 source-ip 2001:db8::2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >