domain-search-list

Function

The domain-search-list command configures a DNS search domain name.

The undo domain-search-list command deletes the configuration.

By default, no DNS search domain name is configured for an address pool.

Format

domain-search-list domain-name

undo domain-search-list [ domain-name ]

Parameters

Parameter Description Value
domain-name

Specifies the name of a search domain.

The value is a string of 1 to 32 case-insensitive characters.

Views

IP address pool view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

When the first-time domain name resolution for a DHCP client fails, the search domain name needs to be added for another resolution. To allow the DHCP server to send search domain names to DHCP clients through Option 119, run the domain-search-list command to configure a search domain name.

Precautions

If the domain-search-list command is run more than once, all configurations take effect.

A maximum of four search domains can be configured in one address pool.

Example

# Set the search domain name to huawei.com for an address pool named huawei.
<HUAWEI> system-view
[~HUAWEI] ip pool huawei
[~HUAWEI-ip-pool-huawei] domain-search-list huawei.com
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >