ip dns domain-name
Syntax
ip dns domain-name [ vrf ] no ip dns domain-name [ vrf ]
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没有
该命令删除域名的形式。
Command context
config
Parameters
-
-
Specifies the domain name to append to DNS requests. Length: 1 to 256 characters.
-
vrf
- 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 todomain.com
:
switch(config)#ip dns domain-name domain.com
Removing the default domain namedomain.com
:
switch(config)#没有ip dns domain-name domain.com