ip dns domain-name
Syntax
ip dns domain-name <DOMAIN-NAME> [ vrf <VRF-NAME> ]
no ip dns domain-name <DOMAIN-NAME> [ vrf <VRF-NAME> ]
Description
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
, the domain name defined with this command is ignored.
ip dns domain-list
The
no
form of this command removes the domain name.
Command context
config
Parameters
<DOMAIN-NAME>
Specifies the domain name to append to DNS requests. Length: 1 to 256 characters.
vrf <VRF-NAME>
- Specifies a VRF name. Default: default.
Authority
Administrators or local user group members with execution rights for this command.
Examples
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