How to Use nslookup at a Windows or Linux Prompt

by | Jan 7, 2026 | Domain Names, Email, Technical Help, Web Hosting

The Origin Story (1986)

nslookup was created in 1986 by Andrew Cherenson while he was a student at the University of California, Berkeley.

  • Context: It was developed as a class project.
  • First Release: It was officially distributed with the 4.3 BSD (Berkeley Software Distribution) Unix release (specifically the “Tahoe” release).
  • Purpose: It was designed as part of the BIND (Berkeley Internet Name Domain) software suite, which effectively built the foundation for how DNS works on the internet today.

When did it come to Windows?

According to Google, nslookup started on Unix (the basis of most Linux distributions) and arrived on early Windows a few years later.

  • First Windows Appearance: It was included in Windows NT 3.1, released in 1993.
  • Note: It was originally a “pro” tool found in the business-focused Windows NT line. It wasn’t natively included in the consumer-focused Windows 95 or 98 (users had to download third-party tools back then), but it became standard for everyone once Windows XP merged the consumer and professional lines.

A Fun Bit of Drama

In the early 2000s, the organization that maintains BIND (the ISC) actually deprecated nslookup, labeling it as obsolete and trying to replace it with newer tools like dig and host.

  • The Result: The IT community largely ignored them. nslookup was so deeply ingrained in muscle memory and scripts that the decision was eventually reversed, and it remains fully supported today.

What nslookup Is Used for and Why I Trust It

I have used nslookup since it first became available decades ago. Back then, DNS troubleshooting tools were limited, so nslookup felt powerful. Simply put, nslookup asks DNS servers questions and shows their answers. Because of that, it helps explain why a domain works or fails.

In everyday terms, nslookup lets me peek behind the Internet curtain. Instead of guessing, I can see real DNS data instantly.

Why a Beginner Might Need nslookup

Many people think websites either work or they don’t. However, DNS problems often hide behind the scenes. With nslookup, I can confirm where a domain really points.

For example, email delivery issues often trace back to DNS. Likewise, website moves rely heavily on correct DNS records. Therefore, nslookup becomes a fast reality check.

Opening nslookup in Windows

Using nslookup in Windows is refreshingly simple: First, I open the Command Prompt. On Windows 7, Windows 10, or Windows 11, this works the same.

I click Start, type cmd, then press Enter. Once the black window appears, I type nslookup and press Enter.

At this point, nslookup is running interactively.

Basic nslookup Usage in Windows

After nslookup starts, it shows the default DNS server. Usually, this is your Internet provider or Google DNS.

Next, I type a domain name and press Enter.

For instance, typing google.com returns multiple DNS records, as shown in my example on this page. These include IP addresses and mail servers. Therefore, I immediately learn how traffic is routed.

👉 NOTE: In Windows, you can copy data from your Command Prompt screen by clicking on the small C:\. icon in its upper left corner of the window, mousing down to Edit and clicking on Mark. Then use your mouse to highlight the text you want to copy and press Enter to move that text into your copy buffer. You can then past it using CTRL-V (standard paste command) into any other window (like email or a document or whatever.

Using Record Types for Better Answers

By default, nslookup shows basic records. However, DNS supports many record types. So, I often change the query type.

For example, I type set type=any.

Then, I query the domain again. As a result, I see text records, mail records, and name servers.

👉 Here’s what the “Command Prompt” screenshot on my desktop machine looks like. Note that on a phone this is more readable when viewed in the landscape (horizontal) mode:
Screenshot of nslookup Using google.com as an Example

What the Screenshot Is Showing

In the screenshot, nslookup is querying google.com. You can see IP addresses, mail exchangers, and text records. Those text records often contain email security information.

Additionally, the output shows authoritative name servers. This helps confirm who controls the domain’s DNS.

Real-World Reasons I Use nslookup

I rely on nslookup during website migrations. At CharlesWorks, we routinely migrate websites to newer, upgraded servers (at no charge to our web clients) to keep them secure and updated. Before switching servers, I confirm DNS changes propagate correctly. Likewise, email troubleshooting often starts here.

When email fails, I check mail exchanger records first. If those look wrong, the problem becomes obvious quickly. Therefore, nslookup saves time and frustration.

Using nslookup Non-Interactively

Sometimes I want fast answers without the interactive mode. In that case, I run a single command.

For example: nslookup google.com 8.8.8.8

This queries Google’s DNS directly. As a result, I bypass local DNS issues. That trick helps isolate problems faster.

Using nslookup on Debian and Other Linux Systems

I mention Debian because it happens to be my favorite at this point in time. However, nslookup is not limited to Windows. On Debian Linux and most distributions, it works similarly. I open a terminal instead of a Command Prompt.

Usually, nslookup is already installed. If not, I install it with standard package tools. Once installed, usage is nearly identical.

Because of that, my troubleshooting skills transfer easily between systems.

Why nslookup Still Matters Today

Some tools come and go over time. However, nslookup has survived for good reasons. It remains simple, reliable, and universally available.

Even with modern graphical tools, I still trust it. When DNS matters, plain answers matter more. That is why nslookup stays in my toolbox.

Final Thoughts for Beginners

If DNS feels mysterious, nslookup removes the mystery. If you want to start getting into the DNS weeds, check out my article: https://charlesworks.com/dns-101-what-dns-is-and-why-dns-is-essential-for-the-internet/. You don’t need advanced knowledge to get value. You just need curiosity and a few commands.

Start small, experiment safely, and read the results. Over time, patterns will make sense naturally. That’s exactly how I learned this stuff earlier in life.

If all this is beyond you and you have an issue with your website that we handle, please do contact us at 603-924-9867 and someone on staff who understands the issue will look into it for you.

CLICK HERE to find your domain name!   CLICK HERE to transfer your domain name!

Archives

Tags

24 hour (1) Accessibility (2) Accounting (1) Advertising (18) AdWare (1) Alex Johnson (2) Alignment (1) Android (2) Anti-Virus (1) Antivirus (1) Antrim Computer Repair and Service (3) APC Back-UPS (1) Appearance (2) Apple Mail (4) Apple Mobile Mail (2) Attachments (1) Audit (1) Authorized (1) Autoresponder (5) Availability (1) Backups (1) Badges (3) Bank Account (1) Bank Statement (1) Battery Backup (2) Better Business Bureau (3) Bob Hill (1) Bookkeeper (1) Branding (10) Budget (2) Business (30) Business Management (1) Catalog (1) Categories (1) Charles Oropallo (1) CharlesWorks (43) Cherryl Jensen (1) Chrome (1) CleanTalk (1) Cloud (1) Code (2) Communicating (1) Competition (1) Computer (2) Computer Cache (1) Computer Hardware (1) Computer Security (2) Constant Contact (1) Consultation (1) Contact Information (2) Content (1) Content Management (41) Content Management System (1) Copiers (1) Copy Machine (1) Coronavirus (2) Courteous (1) COVID-19 (3) Credibility (9) Credit Card (1) Credit Card Processing (1) CSS (9) Customer Service (2) Database (1) Debian (1) Design (51) Design Expertise (1) Desktop (1) Dialup (1) DirectAdmin (4) Directions (1) DIVI (7) DNS (2) Do-it-Yourself (1) Documentation (1) Domains (22) Domain Transfers (5) E-Commerce (1) ecommerce (1) Elementor (1) Email (71) Email Lists (5) Email Management (5) Email marketing (4) Etiquette (3) Eudora 6 (1) Exchange (1) Expanding (1) Facebook (2) Financial (1) Finish (1) Firefox (1) Fonts (1) Forms (2) Forms Protection (1) Fraud (2) Galaxy S4 (1) General Info (1) Gmail (1) GoDaddy (1) Google (1) Google Adwords Certified Partner (1) Google Chrome (2) Groups (1) Happy Holidays (1) Hardware Help (1) Hill Specialty Networks (1) Hosting (1) Images (1) IMAP (1) include (1) Infected (1) Information (38) insert pages (1) Internet Browsing Errors (1) Internet Consultant (1) Internet Explorer (1) Joomla! (1) Keywords (2) Laptop (1) Legibility (1) Linux (13) Logging on (1) Macintosh (1) Mail 6.0 (1) Mail 2011 (2) Make-Over (1) Malicious (1) Malware (1) Marketing (10) Matt Burke (3) MDaemon (3) MelbourneIT (2) menu (1) Merchant (1) meta (1) Microsoft (1) Microsoft Edge (1) Microsoft Hosted Exchange (5) Microsoft Live (2) Mobile Email Setup (1) Monadnock Region (1) Mozilla Firefox (2) MySQL (1) Nathan Wesley (1) Netscape (1) Netscape Messenger (1) Office Copiers (1) OfficeLive (1) Online (1) Outlook (10) Outlook 2010 (2) Outlook Express (1) PayPal (1) Pay Per Click (2) PC (1) Personal (1) Peter Harris (1) Peter Harris Creative (1) Phishing (2) PHP (3) pixel (1) plugins (1) Pop Email (1) Popularity (1) Portfolio (1) Power Grid Failure (1) PPC (1) Prevent Fraud (1) Privacy (1) Private (1) Product (6) products (1) Professional (6) Projects (2) Protect (1) Protection (1) QR codes (1) Quality (2) QuickBooks (1) Reconciliation (1) Reduce Risk (1) Register (1) Reliability (2) Renew (1) Reseller (2) Resolution (1) Restrict User Access (1) Results (1) Review (2) Risk (1) Robin Snow (1) Roundcube (1) Safe (1) Samsung (2) Scam (22) Scammer (22) Search (1) Search and Replace (1) Search Engine Optimization (SEO) (22) Security (32) Security Risk (1) Selling (1) Servers (2) Service (11) Shopping Cart (1) Site (1) SmarterMail (9) Social Engineering (1) Social Networking (1) Software (1) solar flares (1) Solutions for Today (1) Spam (1) Spam Filtering (17) Spammer (1) Spyware (2) SquirrelMail (1) SSL (8) Statistics (2) Stats (2) Stone Pond Technology (1) Storage (1) Support (1) Tablet (1) Target Market (1) Technical Help (1) Testimonials (10) The CW Corner (1) Thom Little (1) Thom Little Associates (1) Thunderbird (3) Thunderbird 10 (2) TLD (1) Topic (1) Top Level Domains (3) Transaction (2) Transfer Data (1) Transfer Funds (1) Typography (1) Update (2) Uploading (1) UPS System (2) Up to Date (1) Virtualmin (1) Virus (2) Viruses (1) Vista (1) Web (1) Web-Over (1) Web Development (108) Web Hoster (1) Web Hosting (2) Web Hosting Company (1) Webmail (8) Web Mail (1) Webmaster (10) Webmin (1) Web Presence (29) Website (119) Website Development (1) websites (2) Web Stats (1) Web terms (1) Web Writing (1) Windows 7 (2) Windows Mail (6) Windows XP (1) WooCommerce (6) WordPress (93) WordPress Updates (1) Working Remote (2) Writing (1) YouTube (1)

Protected by Security by CleanTalk and CleanTalk Anti-Spam