Nslookup /set type


Applies To: Windows Server 2008 R2,Windows Server 2008

Changes the resource record type for the query.

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

Syntax


Copy Code

set type=<ResourceRecordType>

Parameters

Parameter

Description

<ResourceRecordType>

Specifies a DNS resource record type. The default resource record type is A. The following table lists the valid values for this command.

Value

Description

A

Specifies a computer's IP address.

ANY

Specifies all types of data.

CNAME

Specifies a canonical name for an alias.

GID

Specifies a group identifier of a group name.

HINFO

Specifies a computer's CPU and type of operating system.

MB

Specifies a mailbox domain name.

MG

Specifies a mail group member.

MINFO

Specifies mailbox or mail list information.

MR

Specifies the mail rename domain name.

MX

Specifies the mail exchanger.

NS

Specifies a DNS name server for the named zone.

PTR

Specifies a computer name if the query is an IP address; otherwise, specifies the pointer to other information.

SOA

Specifies the start-of-authority for a DNS zone.

TXT

Specifies the text information.

UID

Specifies the user identifier.

UINFO

Specifies the user information.

WKS

Describes a well-known service.

{help | ?}

Displays a short summary of nslookup subcommands.

Remarks

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.>

Examples

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


Copy Code

This /is /the /example

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


Copy Code

This /is /a:"different" /example

Additional references

Command-Line Syntax Key

Nslookup /set querytype