< Home

dns-domain-name

Function

The dns-domain-name command configures the DNS domain name suffix assigned by the DHCPv6 server to a DHCPv6 client.

The undo dns-domain-name command deletes the assigned domain name suffix.

By default, no DNS domain name suffix is configured for the DHCPv6 client.

Format

dns-domain-name dns-domain-name

undo dns-domain-name dns-domain-name

Parameters

Parameter

Description

Value

dns-domain-name

Specifies the DNS domain name suffix assigned to a DHCPv6 client.

The value is a string of case-insensitive characters without spaces. It can be the combination of letters, digits, underscores (_), hyphens (-), or dots (.) and cannot be - or --.

Views

IPv6 address pool view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The dns-domain-name command is used on DHCPv6 servers. The DHCPv6 server specifies a domain name suffix when allocating IPv6 addresses for clients. You can use the dns-domain-name command on the DHCPv6 server to specify a domain name for each global address pool. When allocating IPv6 addresses to clients, the DHCPv6 server also sends the domain name suffix to the clients.

Precautions

Only one DNS domain name can be configured for an IPv6 address pool.

Example

# Configure the domain name suffix assigned to the DHCPv6 client as huawei.com for the address pool pool1.

<sysname> system-view
[sysname] dhcpv6 pool pool1
[sysname-dhcpv6-pool-pool1] dns-domain-name huawei.com
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >