Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page




 

Microsoft DOS nslookup command

Quick links

About nslookup
Availability
Syntax
Examples

About nslookup

MS-DOS utility that enables a user to look up an IP address of a domain or host on a network.

Users who are using earlier versions of Microsoft Windows 95, Windows 98, or Windows ME and need the options available with the nslookup command will need to download an alternative, third-party program.

Availability

The nslookup.exe command is an external command that is available in the below Microsoft operating systems.

Windows NT
Windows 2000
Windows XP
Windows 7

Index

Category:
MS-DOS

Companies:
Microsoft

Related Pages:
CH000444

Resolved

Were you able to locate the answer to your questions?

Syntax

Commands: (identifiers are shown in uppercase, [] means optional)

NAMEprint info about the host/domain NAME using default server
NAME1 NAME2 as above, but use NAME2 as server
help or ?print info on common commands
set OPTIONset an option

allprint options, current server and host
[no]debugprint debugging information
[no]d2print exhaustive debugging information
[no]defnameappend domain name to each query
[no]recurseask for recursive answer to query
[no]searchuse domain search list
[no]vcalways use a virtual circuit
domain=NAMEset default domain name to NAME
srchlist=N1[/N2/.../N6] set domain to N1 and search list to N1,N2, etc.
root=NAMEset root server to NAME
retry=Xset number of retries to X
timeout=Xset initial time-out interval to X seconds
type=Xset query type (ex. A,ANY,CNAME,MX,NS,PTR,SOA,SRV)
querytype=Xsame as type
class=Xset query class (ex. IN (Internet), ANY)
[no]msxfruse MS fast zone transfer
ixfrver=Xcurrent version to use in IXFR transfer request
server NAMEset default server to NAME, using current default server
lserver NAMEset default server to NAME, using initial server
finger [USER]finger the optional NAME at the current default host
rootset current default server to the root
ls [opt] DOMAIN [> FILE] list addresses in DOMAIN (optional: output to FILE)

-alist canonical names and aliases
-dlist all records
-t TYPE list records of the given type (e.g. A,CNAME,MX,NS,PTR etc.)
view FILEsort an 'ls' output file and view it with pg
exitexit the program

Examples

This command is often used to perform a reverse lookup on an IP address as shown in the below example. The first section specifies the server and address of that server that provided you with the domain name and IP address displayed in the second section.

nslookup 204.228.150.3

Server: ns.computerhope.com
Address: 1.1.1.1

Name: www.computerhope.com
Address: 204.228.150.3

nslookup

Running nslookup without specifying an IP address or domain name will s

Home - Computer help - Contact - Site Map - About Us
Link to Computer Hope - Bookmark Computer Hope