The domain-name command configures the domain name suffix for the DHCP client.
The undo domain-name command deletes a configured domain name suffix.
By default, no domain name suffix is configured.
Parameter |
Description |
Value |
---|---|---|
domain-name |
Specifies a domain name to be assigned to a DHCP client. |
The value is a string of 1 to 63 characters without spaces. NOTE:
When quotation marks are used around the string,
spaces are allowed in the string. |
This command applies to DHCP servers. When allocating IP addresses to the client, the DHCP server also specifies domain names for clients. Run the domain-name command on the DHCP server to specify a domain name. When allocating IP addresses to clients, the DHCP server also sends the domain names to the clients.
To configure a domain name for an interface address pool, run the dhcp server domain-name (interface view) command.
<HUAWEI> system-view [HUAWEI] ip pool test [HUAWEI-ip-pool-test] domain-name example.com
<HUAWEI> system-view [HUAWEI] dhcp option template template1 [HUAWEI-dhcp-option-template-template1] domain-name huawei.com