Changes the resource record type for the query. For information about resource record types, see Request for Comment (Rfc) 1035.
Note: This command is the same as the nslookup set type command.
Syntax
set querytype=<resourcerecordtype>
Parameters
| Parameter | Description |
|---|---|
<resourcerecordtype> |
Specifies a DNS resource record type. The default resource record type is A, but you can use any of the following values:<ul><li>A: Specifies a computer's IP address.</li><li>ANY: Specifies a computer's IP address.</li><li>CNAME: Specifies a canonical name for an alias.</li><li>GID Specifies a group identifier of a group name.</li><li>HINFO: Specifies a computer's CPU and type of operating system.</li><li>MB: Specifies a mailbox domain name.</li><li>MG: Specifies a mail group member.</li><li>MINFO: Specifies mailbox or mail list information.</li><li>MR: Specifies the mail rename domain name.</li><li>MX: Specifies the mail exchanger.</li><li>NS: Specifies a DNS name server for the named zone.</li><li>PTR: Specifies a computer name if the query is an IP address; otherwise, specifies the pointer to other information.</li><li>SOA: Specifies the start-of-authority for a DNS zone.</li><li>TXT: Specifies the text information.</li><li>UID: Specifies the user identifier.</li><li>UINFO: Specifies the user information.</li><li>WKS: Describes a well-known service.</li></ul> |
| /? | Displays help at the command prompt. |
| /help | Displays help at the command prompt. |
Related links
Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
