Changes the default Domain Name System (DNS) domain name to the name specified.

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


set domain=<DomainName>


Parameter Description


Specifies a new name for the default DNS domain name. The default domain name is the host name.

{help | ?}

Displays a short summary of nslookup subcommands.


  • The default DNS domain name is appended to a lookup request depending on the state of the defname and search options. The DNS domain search list contains the parents of the default DNS domain if it has at least two components in its name. For example, if the default DNS domain is, the search list is named both and Use the set srchlist command to specify a different list and the set all command to display the list.

Scripting <optional section>

<Here is where you discuss using the command within a script. You should also provide an FWLink to a specific page in the Script Center, if possible.>


<Here is where you put a detailed description of your example>:

This /is /the /example

<Here is where you put detailed descriptions of another example>:

This /is /a:"different" /example