शब्दकोश · DNS

nslookup

nslookup is a cross-platform command-line tool for querying DNS records, available on Windows by default and usable interactively or in a single command.

अपडेट: अक्टूबर 6, 2026

nslookup is a command-line DNS query tool that ships with Windows and is also available on Linux and macOS. It sends a query to a resolver you choose and prints the answer, either as a one-off command or in an interactive mode.

Why it matters

Because it is installed on almost every Windows machine, it is often the first tool support teams reach for. It is simpler than dig but shows less: no flags, no per-section detail and limited control over recursion. The first lines of output name the server that answered, which helps spot a wrong resolver. A line saying "Non-authoritative answer" means the reply came from a cache, not the zone's own nameservers.

Example

> nslookup -type=MX example.com 1.1.1.1
Server:  one.one.one.one
Address: 1.1.1.1

Non-authoritative answer:
example.com  MX preference = 10, mail exchanger = mail.example.com

Interactive mode starts by typing nslookup, then set type=TXT and a name.

Common mistakes

  • Ignoring which resolver answered, then trusting a stale result.
  • Using the old set querytype habit incorrectly. Use set type=.
  • Treating "Non-authoritative" as an error.

Get notified when this term updates

Plus occasional practical tips on uptime and monitoring, nothing else. Unsubscribe anytime.

यह पेज सामान्य जानकारी है, जिसे हमारी संपादकीय टीम ने लिखा है और दस्तावेज़ीकरण बदलने पर अपडेट किया जाता है। सर्वर और प्रदाता अलग-अलग होते हैं, इसलिए बदलाव पहले सुरक्षित तरीके से जाँचें। देखें: संपादकीय नीति और अस्वीकरण.