Command Line Interface
966 1553-KDU 137 365 Uen D 2006-06-16
7.22.3 ip domain-name
This command defines the default domain name appended to incomplete host
names (that is, host names passed from a client that are not formatted 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-64 characters)
Default Setting
None
Command Mode
Global Configuration
Example
Related Commands
ip domain-list (section 7.22.4 on page 967)
ip name-server (section 7.22.5 on page 968)
ip domain-lookup (section 7.22.6 on page 969)
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#