Nslookup: set srchlist

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Nslookup: set srchlist

Changes the default Domain Name System (DNS) domain name and search list.


Set srchl[ist]**=**DomainName[/...]

  • DomainName
    Specifies new names for the default DNS domain and search list. The default domain name value is based on the host name. You can specify a maximum of six names separated by slashes (/).
  • { help| ?}
    Displays a short summary of nslookup subcommands.
  • The set srchl command overrides the default DNS domain name and search list of the set domain command. Use the set all command to display the list.

To set the DNS domain to mfg.widgets.com and the search list to the three names, type:

set srchlist=mfg.widgets.com/mrp2.widgets.com/widgets.com

Formatting legend

Format Meaning


Information that the user must supply


Elements that the user must type exactly as shown

Ellipsis (...)

Parameter that can be repeated several times in a command line

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output

See Also


Nslookup subcommands
Command-line reference A-Z
Command shell overview
Nslookup: set domain
Nslookup: set all