domain-name

Use this command to return one or more domain names when responding to a DHCP or DHCPv6 client request.

Syntax

domain-name domain [domain2 ... domain8]
no domain-name domain [domain2 ... domain8]

Parameters

domain Specifies a domain name string.
[domain2 ... domain8] (Optional) Specifies up to seven additional domain name strings separated by spaces.

Defaults

If additional optional domains are not specified, only the specified domain is configured.

Mode

DHCP address pool, class, or host configuration command mode for IPv4; DHCPv6 server information options pool configuration command mode for IPv6.

Usage

This command configures either the IPv4 DHCP option 15 in an IPv4 address DHCP server pool context or the DHCPv6 option 24 in an IPv6 information DHCP server pool context.

The “no” form of this command deletes the specified DHCP domain name(s).

Example

This example shows how to assign the myEnterprise.com domain name to the IPv4 localpool address pool:

System(rw-config)->ip dhcp pool localpool
System(rw-config-dhcp-v6-pool)->domain-name myEnterprise.com

This example shows how to assign the myEnterprise.com domain name to the docPool DHCPv6 server information options pool:

System(rw-config)->ipv6 dhcp pool docPool
System(rw-config-dhcp-pool)->domain-name myEnterprise.com