Previous page Next page

ip domain-name

Defines the domain to which the device belongs and sets the default domain name to be appended to host names that are not fully qualified.

Syntax
ip domain-name <name>
 
no ip domain-name
 
Arguments
Prerequisites

Must be in configuration mode (config), which requires privileged-level access.

Occurrence

Use once.

Default

There is no default domain name.

Description

Use the no form of the command to delete the default domain name.

Do not include a leading dot (the operating system will append “dot <domain>” to an unqualified hostname). For example, if you declare the default domain name to be mydomain.com and the unqualified hostname is host, the CNA operating system will translate the hostname to the following:

host.mydomain.com
 

 

Allowable syntax for name, as defined in RFC 1034, is any alphanumeric character, plus the hyphen.

If both ip domain-name and ip domain-list commands are used, both will show up in the configuration. But ip domain-name takes precedence. The list will be ignored.


Previous page Next page