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



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

Nslookup subcommands

Command-line reference A-Z

Nslookup: set domain

Nslookup: set all

© 2017 Microsoft Corporation. All rights reserved. Contact Us |Terms of Use |Trademarks |Privacy & Cookies