ip dns domain-list

Syntax

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

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

Description

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 no form of this command removes a domain from the list.

Command context

config

Parameters

list <DOMAIN-NAME>

Specifies a domain name. Up to six domains can be added to the list. 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

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

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

This example removes the entry domain1.com.

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