< Home

dns-server (IPv6 address pool view)

Function

The dns-server command configures a DNS server address for the DHCPv6 address pool.

The undo dns-server command deletes the configured DNS server address.

By default, no DNS server address is configured for the IPv6 address pool.

Format

dns-server ipv6-address

undo dns-server ipv6-address

Parameters

Parameter

Description

Value

ipv6-address

DNS server IPv6 address configured for the DHCPv6 address pool.

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

Views

IPv6 address pool view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The dns-server command is used on DHCPv6 servers. Before a host accesses the Internet, a DNS server needs to resolve the accessed domain name to an IP address. The DHCPv6 server needs to specify the IPv6 address of the DNS server for the global address pool so that the DHCPv6 client can be connected to the Internet. The DHCPv6 server specifies the IPv6 address of the DNS server when allocating IPv6 addresses to the clients.

Precautions

  • To specify multiple DNS servers, run the dns-server command to configure multiple DNS server addresses.
  • A maximum of two DNS server addresses can be configured for each IPv6 address pool. The first assigned DNS server address is used as a primary address. The priority of the first configured DNS server is higher than that of the other DNS server.

Example

# Specify a DNS server with the IPv6 address fc00:1::1 for domain name resolution when IP addresses in the address pool global1 are assigned to clients.

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