domain-name

Configures the domain name for the DHCP client.
Syntax
domain-name domain-name
Command Default

No domain name is configured.

Parameters
domain-name
Specifies the name of the domain in ASCII text format.
Modes

DHCP server pool configuration mode

Usage Guidelines

The configuration of a domain name is only accepted when the domain name has a maximum of 128 characters. However, the domain label (string between 2 dots) can only have a maximum of 63 characters. If the domain label exceeds 63 characters, or if the entire domain name exceeds 128 characters, an error is thrown and the configuration is not accepted.

The no form of the command removes a configured domain name.

Examples

The following example specifies the domain name for the DHCP client.

device# configure terminal
device(config)# ip dhcp-server pool cabo
device(config-dhcp-cabo)# domain-name sierra
History