The dns domain command configures a domain name suffix of a server or a host on a DNS client that the DNS client wants to access.
The undo dns domain command deletes a configured domain name suffix from a DNS client.
By default, no domain name suffix is configured on a DNS client.
| Parameter | Description | Value |
|---|---|---|
domain-name |
Specifies a domain name suffix on a DNS Client. |
The value is a string of 1 to 64 characters, spaces not supported. The string is a combination of digits, letters, underscores (_), dots (.), and hyphen (-). |
Application Scenario
Precautions
A DNS client supports a maximum of 10 domain name suffixes. To configure multiple domain name suffixes, you can run the dns domain command repeatedly.
If the name of the suffix to be deleted is specified, the specified suffix is deleted. Otherwise, all the suffixes are deleted.