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 management|) DOMAIN-NAME
no ip domain-name (vrf management|) DOMAIN-NAME
Parameters
management
Virtual Routing and Forwarding name
DOMAIN-NAME
Domain string (e.g. company.com)(Max Size 64)
Default
No default is specified.
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#ip domain-name company.com
Last modified date: 10/19/2023