# What Is nslookup and How to Use It

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "WebPage",
  "headline": "What Is nslookup and How to Use It\n",
  "description": "Read this guide to know what the nslookup command does, how you can check nslookup, and how it can benefit email marketers.",
  "image": "https://res.cloudinary.com/mailmodo/image/upload/v1653026177/strapi/Feature_image_nslookup_b0b85b79cb.png",
  "datePublished": "2022-05-17T15:56:47.912Z",
  "dateModified": "2025-01-08T06:29:48.442Z",
  "publisher": {
    "@type": "Organization",
    "name": "Mailmodo",
    "url": "https://www.mailmodo.com/",
    "sameAs": [
      "https://www.linkedin.com/company/mailmodo/",
      "https://www.facebook.com/mailmodo/",
      "https://www.instagram.com/mailmodohq/",
      "https://www.youtube.com/@mailmodo"
    ],
    "logo": "https://www.mailmodo.com/static/images/logo/logo-full.svg",
    "description": "Mailmodo is a complete email marketing platform that helps email marketers to create and send interactive emails to drive growth and engagement.",
    "address": {
      "@type": "PostalAddress",
      "addressLocality": "Lewes",
      "addressRegion": "DE",
      "postalCode": "19958",
      "streetAddress": "Mailmodo Technologies Inc. 16192, Coastal Highway",
      "addressCountry": {
        "@type": "Country",
        "name": "US"
      }
    },
    "contactPoint": {
      "@type": "ContactPoint",
      "email": "enquiries@mailmodo.com",
      "contactType": "customer service"
    }
  }
}
</script>

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "What Is nslookup and How to Use It\n",
  "description": "Read this guide to know what the nslookup command does, how you can check nslookup, and how it can benefit email marketers.",
  "image": "https://res.cloudinary.com/mailmodo/image/upload/v1653026177/strapi/Feature_image_nslookup_b0b85b79cb.png",
  "datePublished": "2022-05-17T15:56:47.912Z",
  "dateModified": "2025-01-08T06:29:48.442Z",
  "author": {
    "@type": "Person",
    "name": "Aquibur Rahman",
    "url": "https://www.mailmodo.com/guides/author/aquibur-rahman/"
  },
  "publisher": {
    "@type": "Organization",
    "name": "Mailmodo",
    "logo": {
      "@type": "ImageObject",
      "url": "https://www.mailmodo.com/static/images/logo/logo-full.svg"
    }
  },
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://www.mailmodo.com/guides/nslookup/"
  }
}
</script>

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "@id": "#creator",
  "description": "Email marketing software to create and send interactive emails to maximize conversions and reinvent your user journey",
  "email": "support@mailmodo.com",
  "image": "https://www.mailmodo.com/static/images/og-image.png",
  "knowsAbout": "Email marketing",
  "legalName": "Mailmodo Technologies Inc.",
  "location": "United States",
  "logo": "https://www.mailmodo.com/static/images/logo/logo-full.svg",
  "name": "Mailmodo",
  "sameAs": [
    "https://twitter.com/mailmodo",
    "https://www.facebook.com/company/mailmodo/",
    "https://www.linkedin.com/company/mailmodo/"
  ],
  "url": "https://www.mailmodo.com/"
}
</script>

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    {
      "@type": "ListItem",
      "position": 1,
      "name": "Home",
      "item": "https://www.mailmodo.com/"
    },
    {
      "@type": "ListItem",
      "position": 2,
      "name": "Guides",
      "item": "https://www.mailmodo.com/guides/"
    },
    {
      "@type": "ListItem",
      "position": 3,
      "name": "nslookup",
      "item": "https://www.mailmodo.com/guides/nslookup/"
    }
  ]
}
</script>

## Table of contents

- What is nslookup?
- Use Cases for nslookup
- List of nslookup commands
- How to check DNS records with nslookup
- Supported DNS record types
- Takeaways

Have you ever wondered what your domain IP address is? You may already know that whenever users enter a domain name in the search bar, the browser directs them to the domain’s IP address. So what is yours?

To find out, you need to dig into your Domain Name System (DNS) settings which can take a while and needs technical proficiency. But with the help of **nslookup (Name Server Lookup)**, you can check DNS records quickly without having deep technical knowledge. So, let's discuss what nslookup is and how you can benefit from it.

## What is nslookup?

**As the name suggests, nslookup is a method to find DNS records of a domain name. Every domain name has a set of DNS records, and you can find them with nslookup, including important email records like MX (Mail Exchange) records that help you receive important emails that are sent to your domai**n.

  

## Use Cases for nslookup

Nslookup is a powerful command-line tool used for querying DNS (Domain Name System) to obtain domain name or IP address information. It’s essential for troubleshooting network issues and understanding domain resolutions. Here are some practical use cases of nslookup to illustrate its capabilities.

-   Nslookup is mainly used for troubleshooting DNS problems. Since you can check many DNS record types with this method, you can also check if there is some inconsistency.
    
-   If you’re not receiving emails to your domain and suspect your MX records have errors, you can cross-check with nslookup. If you find out that your MX record isn't pointing to the right domain, you can fix that as soon as possible to start receiving emails to your domain again.
    
-   You can also check the PTR record that helps inbox providers want you to have so they can check the legitimacy of your emails. If you find inconsistencies, you must fix them as soon as possible to minimize the negative impact on your email deliverability.
    

  

## List of nslookup commands

Nslookup command is a network utility used to retrieve a domain’s information, including its IP address and DNS record. Using various nslookup commands, you will get different information about your domain.

Here is a list of commonly used nslookup commands:

  

| **Nslookup command** | **Function** |
| --- | --- |
| Name | Retrieves information about a domain name or hostname using the default DNS server. |
| Server name | Sets a different default DNS server using the current one’s information. |
| Root | Sets the DNS root server as the default. |
| Set type= `record type` | Queries for a specific type of DNS record, such as A, MX, PTR, or SOA. Using ANY will show all available records from the server. |
| Set debug | Provides detailed information about debugging for each query and its corresponding response. |
| Set recurse | Instructs the DNS server to query other servers if it cannot resolve the information itself. |
| Help | Displays a list of available nslookup commands and their descriptions.|
| Exit | Exits the nslookup tool and returns to the command-line interface. |

  

  

## How to check DNS records with nslookup

There are two methods we can employ to check DNS records with nslookup. Let’s take a look at both of them.

### Online tools

We will use nslookup.io to make checking DNS records super easy for you. Follow these steps to check DNS types of different domains:

1.  Visit [nslookup.io](https://www.nslookup.io/) and enter the desired domain name.
    

![Enter your domain name](https://res.cloudinary.com/mailmodo/image/upload/f_auto,q_100/v1653025883/strapi/nslookup_1_b2e32a9645.png)

2. Click on Find DNS records.

3. You’ll see the different DNS record types.

![Find the DNS records you're looking for](https://res.cloudinary.com/mailmodo/image/upload/f_auto,q_100/v1653025884/strapi/nslookup_3_672732bca0.png)

Note that you can also filter these results by different servers, including Cloudflare DNS, Google DNS, Open DNS, Authoritative, and Local DNS.

### Command prompt

Here is how to check your DNS records with the nslookup command in Windows.

1.  Make sure you are connected to a stable internet connection.
    
2.  Press the Windows logo key type cmd and open the program.
    
3.  Then type nslookup followed by the domain name.
    

  ![A rectangle showing command line](https://res.cloudinary.com/mailmodo/image/upload/f_auto,q_100/v1721722695/strapi/dnsrecord2_9fd696c319.png)
  

4. You’ll see the DNS records of that domain.

![A rectangle showing Nslookup results using command line](https://res.cloudinary.com/mailmodo/image/upload/f_auto,q_100/v1721722695/strapi/dnsrecord1_6fcba0cae9.png)

5. If you want to query a specific record, type nslookup -type=[DNS record type] domain. Here, replace the [DNS record type] with A, MX, or any other record you want to know and the domain name.

  

![An image showing nslookup command of various record types](https://res.cloudinary.com/mailmodo/image/upload/f_auto,q_100/v1726487563/strapi/2_8935e74f96.png)
  

6. You’ll see the details of that particular DNS record.

![An image showing nslookup of various record types](https://res.cloudinary.com/mailmodo/image/upload/f_auto,q_100/v1726487562/strapi/1_44224dd122.png)
  

<div class="highlight-gray"> <p> <strong>💡 Related guide: <a href=https://www.mailmodo.com/guides/dns-record/></strong> What Is a DNS Record and How Do They Work in Emails?</a></p> </div>

  

## Supported DNS record types

The nslookup command supports several DNS record types. To use these record types with nslookup, you generally specify the record type using the “query” option followed by the record type and the domain name you're interested in.

As previously discussed, there are two main ways to use nslookup. The record types supported by both the aforementioned methods are different. Here are the supported DNS record types for each:

### 1. Windows Command line

-   **A:** Specifies a computer's IP address.
    
-   **ANY:** Specifies a computer's IP address.
    
-   **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, it 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.
    

Source: [Microsoft Ignite](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/nslookup-set-querytype)

### 2. Online tools

Although different online nslookup tools like [Broad Band Tools](https://www.broadbandsearch.net/nslookup) and [Web Wiz](https://network-tools.webwiz.net/nslookup.htm) may show you different types of records, we are going to use [nslookup.io](https://www.nslookup.io/), it shows you the following types of DNS records:

-   **A**
    
-   **AAAA**
    
-   **CNAME**
    
-   **TXT**
    
-   **NS**
    
-   **MX**
    
-   **SOA**
    

Source: [Nslookup](https://www.nslookup.io/domains/mailmodo.com/dns-records/#cloudflare)

  
  
  

## Takeaways

The world of DNS records is complex, time-consuming, and complicated. Nslookup makes the process of checking DNS records a bit easier.

Making changes to your DNS is not easy, and waiting for those changes to get reflected is even harder. People waste too much time waiting for DNS changes to be reflected because they aren't familiar with the concept of [DNS propagation](https://www.mailmodo.com/guides/dns-propagation/). Read our guide to familiarize yourself with the A-Z of DNS propagation.

## Frequently Asked Questions

### What is the nslookup command used for?

The nslookup command is used to query Domain Name System (DNS) records. It helps to find IP addresses associated with domain names or vice versa and can provide information about DNS servers and their configuration. It's useful for troubleshooting network issues.

###  Is nslookup a DNS tool?

Yes, nslookup is a DNS tool. It queries DNS servers to retrieve information about domain names, such as their IP addresses or DNS records. It's commonly used for troubleshooting and diagnosing DNS-related issues.

### What’s the difference between nslookup and ping?


Nslookup queries DNS servers to retrieve information about domain names, such as their IP addresses and other DNS records. It helps diagnose DNS issues and verify domain name resolutions.

Ping tests the reachability of a networked device by sending ICMP Echo Request packets and measuring the response time. It helps determine if a host is reachable and assess network latency. In summary, nslookup focuses on DNS queries, while ping checks connectivity and response times.


### Which is the most used nslookup command?

The most used nslookup command is simply querying a domain name. For example, running nslookup on google.com will provide the IP address associated with Google's domain. This basic query helps users quickly find out the IP address of a given website.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "What is the nslookup command used for?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "The nslookup command is used to query Domain Name System (DNS) records. It helps to find IP addresses associated with domain names or vice versa and can provide information about DNS servers and their configuration. It's useful for troubleshooting network issues."
      }
    },
    {
      "@type": "Question",
      "name": " Is nslookup a DNS tool?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Yes, nslookup is a DNS tool. It queries DNS servers to retrieve information about domain names, such as their IP addresses or DNS records. It's commonly used for troubleshooting and diagnosing DNS-related issues."
      }
    },
    {
      "@type": "Question",
      "name": "What’s the difference between nslookup and ping?\n",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Nslookup queries DNS servers to retrieve information about domain names, such as their IP addresses and other DNS records. It helps diagnose DNS issues and verify domain name resolutions.\n\nPing tests the reachability of a networked device by sending ICMP Echo Request packets and measuring the response time. It helps determine if a host is reachable and assess network latency. In summary, nslookup focuses on DNS queries, while ping checks connectivity and response times.\n"
      }
    },
    {
      "@type": "Question",
      "name": "Which is the most used nslookup command?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "The most used nslookup command is simply querying a domain name. For example, running nslookup on google.com will provide the IP address associated with Google's domain. This basic query helps users quickly find out the IP address of a given website."
      }
    }
  ]
}
</script>

---

**Author: Aquibur Rahman**

Aquibur is the CEO and co-founder of Mailmodo. He has assisted various tech companies in setting up their email marketing infrastructure.

