ip dns domain-list

Syntax

ip dns domain-list(多联机没有ip dns domain-list(多联机]

描述

Configures one or more domain names that are appended to the DNS request. The DNS client appends each name in succession until the DNS server replies. Domains can be either IPv4 or IPv6. By default, requests are forwarded on the default VRF.

The没有form of this command removes a domain from the list.

Command context

config

Parameters

list

Specifies a domain name. Up to six domains can be added to the list. Length: 1 to 256 characters.

vrf
Specifies a VRF name. Default: default.

权威

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

Examples

This example defines a list with two entries:domain1.comanddomain2.com.

switch(config)#ip dns domain-list domain1.comswitch(config)#ip dns domain-list domain2.com

This example removes the entrydomain1.com.

switch(config)#没有ip dns domain-list domain1.com