The ip domain-name command sets the default domain name suffix.
The undo ip domain-name command deletes the default domain name suffix.
By default, no default domain name suffix is provided.
Parameter | Description | Value |
---|---|---|
domain-name |
Specifies the domain name suffix. |
The value is a string of 1 to 255 characters. |
Usage Scenario
Devices with the same system name may exist in different domains. In this case, you can configure a fully qualified domain name (FQDN) for a device to uniquely identify it. The FQDN of a device consists of the default domain name suffix and device name. You can run the ip domain-name command to set the default domain name suffix and the sysname command to set the device name.
Precautions
If you run the ip domain-name command multiple times, the latest configuration overrides the previous configurations.