dns server ipv6

Function

The dns server ipv6 command specifies a DNS server IPv6 address.

The undo dns server ipv6 command deletes a DNS server IPv6 address.

By default, no DNS server IPv6 address is specified.

Format

dns server ipv6 ipv6-address [ interface-type interface-number | interface-name ] [ vpn-instance vpn-name ]

undo dns server ipv6 ipv6-address [ interface-type interface-number | interface-name ] [ vpn-instance vpn-name ]

Parameters

Parameter Description Value
ipv6-address

Specifies the IPv6 address of a DNS server.

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

interface-type interface-number

Specifies the type and number of an outbound interface when the IPv6 address of a DNS server is a link-local address.

-

vpn-instance vpn-name

Specifies the name of a VPN instance.

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 the IPv6 address of the destination end is searched based on its host name in ping6 or tracert6 operations, dynamic DNS can be used for domain name resolution. After you run the dns resolve command to enable dynamic DNS, run the dns server ipv6 command to specify a DNS server IPv6 address.

Precautions

During dynamic DNS, the system sends query packets to DNS servers in the order their IPv6 addresses are specified on the system. If domain name resolution times out on the first DNS server, the system sends a query request to the next DNS server.

A DNS server IPv6 address must be a global unicast or link-local address.

Example

# Set the IP address of the DNS server in the VPN named vpn1 to 2001:db8::2.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpn1
[*HUAWEI-vpn-instance-vpn1] ipv6-family
[*HUAWEI-vpn-instance-vpn1-af-ipv6] quit
[*HUAWEI-vpn-instance-vpn1] quit
[*HUAWEI] dns server ipv6 2001:db8::2 vpn-instance vpn1
# Specify a DNS server IPv6 address 2001:db8::1.
<HUAWEI> system-view
[~HUAWEI] dns server ipv6 2001:db8::1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >