< Home

dns server ipv6

Function

The dns server ipv6 command configures the IPv6 address of a DNS server.

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

By default, no IPv6 addresses of DNS servers are configured.

Format

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

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

Parameters

Parameter

Description

Value

ipv6-address

Specifies the IPv6 address for a 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.

interface-type interface-number

Specifies the type and number of an outbound interface that communicates with the DNS server.

-

vpn-instance vpn-instance-name

Specifies the name of a VPN instance.

The value must be an existing VPN instance name.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The DNS client must work with the DNS server to implement dynamic domain name resolution. You can run the dns server ipv6 command to specify the IPv6 address of the DNS server. The DNS client sends requests to the specified DNS server for domain name resolution.

During dynamic domain name resolution, the switch sends a domain name resolution request to the DNS servers according to the order in which they were configured. If the domain name resolution request on the first DNS server times out, the device sends the request to the next DNS server.

Precautions

The IPv6 address of the DNS server must be a global unicast address or link-local address.

  • If a link-local address is configured as the IPv6 address of the DNS server, specify the outbound interface for communicating with the DNS server.
  • If a global unicast address is configured as the IPv6 address of the DNS server, do not specify the outbound interface for communicating with the DNS server.

A maximum of six DNS server IP (IPv4 and IPv6) addresses can be configured on the switch.

If vpn-instance vpn-instance-name is specified, the system sends domain name resolution requests only to the DNS servers bound to the specified VPN instance.

Example

# Configure the IPv6 address of the DNS server to fc00:1::1.

<HUAWEI> system-view
[HUAWEI] dns server ipv6 fc00:1::1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >