CLI Reference Guide-R04

Table Of Contents
Chapter 30
| DHCP Commands
DHCP Server
– 880 –
Syntax
dns-server address1 [address2]
no dns-server
address1 - Specifies the IP address of the primary DNS server.
address2 - Specifies the IP address of the alternate DNS server.
Default Setting
None
Command Mode
DHCP Pool Configuration
Usage Guidelines
If DNS IP servers are not configured for a DHCP client, the client cannot
correlate host names to IP addresses.
Servers are listed in order of preference (starting with address1 as the most
preferred server).
Example
Console(config-dhcp)#dns-server 10.1.1.253 192.168.3.19
Console(config-dhcp)#
domain-name This command specifies the domain name for a DHCP client. Use the no form to
remove the domain name.
Syntax
domain-name domain
no domain-name
domain - Specifies the domain name of the client.
(Range: 1-32 characters)
Default Setting
None
Command Mode
DHCP Pool Configuration
Example
Console(config-dhcp)#domain-name sample.com
Console(config-dhcp)#