D
OMAIN
N
AME
S
ERVICE
C
OMMANDS
36-4ip domain-name
This command defines the default domain name appended to incomplete
host names (i.e., host names passed from a client that are not formatte d
with dotted notation). Use the no form to remove the current domain
name.
Syntax
ip domain-name name
no ip domain-name
name - Name of the host. Do not include the initial dot that
separates the host name from the domain name.
(Range: 1-63 characters)
Default Setting
None
Command Mode
Global Configuration
Example
Related Commands
ip domain-list (36-5)
ip name-server (36-6)
ip domain-lookup (36-7)
Console(config)#ip domain-name sample.com
Console(config)#end
Console#show dns
Domain Lookup Status:
DNS disabled
Default Domain Name:
.sample.com
Domain Name List:
Name Server List:
Console#