Nslookup /set srchlist

Updated: April 17, 2012

Applies To: Windows Server 2008, Windows Server 2008 R2

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

For examples of how this command can be used, see Examples.


Set srchlist=<DomainName>[/...]


Parameter Description


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 srchlist command overrides the default DNS domain name and search list of the set domain command. Use the set all command to display the list.


The following example sets the DNS domain to mfg.widgets.com and the search list to the three names:

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

Additional references

Command-Line Syntax Key

Nslookup /set domain

Nslookup /set all