Nslookup: set domain

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


set do[main]=DomainName


DomainName : 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 mfg.widgets.com, the search list is named both mfg.widgets.com and widgets.com. Use the set srchlist command to specify a different list and the set all command to display the list.

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

Command-line reference A-Z

Nslookup subcommands

Nslookup: set srchlist

Nslookup: set all