ip domain-name
Use this command to set the default domain name used to complete unqualified host names (names without a dotted-decimal domain name).
The ip domain-list command is similar to the ip domain-name
command, except that with the ip domain-list
command you can define a list of domains, each to be tried in turn.
If a domain list has been created with ip domain-list, the default domain name is not used. If there is no domain list, the default domain name is used.
Use the no
form of this command to disable DNS.
Command Syntax
ip domain-name (vrf (NAME|management)|) DOMAIN-NAME
no ip domain-name (vrf (NAME|management)|) DOMAIN-NAME
Parameters
DOMAIN-NAME
Domain string (e.g. company.com)(Max Size 64)
vrf management
Defines the management VRF Virtual Routing and Forwarding instance.
vrf NAME
Specify the user-defined VRF instance name.
Default
None
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3. Added NAME parameter in OcNOS version 6.5.3.
Example
#configure terminal
(config)#ip domain-name company.com