ip dns domain-name


ip dns domain-name <DOMAIN-NAME> [ vrf <VRF-NAME> ] 

no ip dns domain-name <DOMAIN-NAME> [ vrf <VRF-NAME> ]


Configures a domain name that is appended to the DNS request. The domain can be either IPv4 or IPv6. By default, requests are forwarded on the default VRF. If a domain list is defined with the command ip dns domain-list, the domain name defined with this command is ignored.

The no form of this command removes the domain name.

Command context




Specifies the domain name to append to DNS requests. Length: 1 to 256 characters.

vrf <VRF-NAME>
Specifies a VRF name. Default: default.


Administrators or local user group members with execution rights for this command.


Setting the default domain name to domain.com:

switch(config)# ip dns domain-name domain.com

Removing the default domain name domain.com:

switch(config)# no ip dns domain-name domain.com