Knowledge Base
MilesWeb / Windows Hosting FAQ

How to Use the NSLOOKUP Tool Provided with Windows?

Approx. read time : 3 min

Name server lookup (nslookup) is a command-line tool that allows you to find the internet protocol (IP) address or a domain name system (DNS) record of a particular domain name.

This tool is included with Microsoft Windows, and you can use it through the command prompt. NSLOOKUP can also be used for DNS propagation and resolution with different servers and troubleshooting steps.

In this guide, we will understand how to use the NSLOOKUP tool that is provided with Microsoft Windows.

Steps to Use the NSLOOKUP:

To use the NSLOOKUP tool, go to Start and type cmd in the search field to open the command prompt. Or, you can go to Start > Run > type cmd or command.

cmd
command

1. Simply type nslookup and press Enter. Your local DNS server and its IP address will be displayed.

local dns server

2. You can also specify the DNS server (IP address), type of record and domain name.

To display the above parameters, type nslookup and domain name, and the command prompt will return the A record for the domain you run a particular query for:

nslookup command

Here, wikipedia.org is the domain name.

3. Now, type nslookup -q=XX, where XX denotes the DNS record. The available types of DNS records are CNAME, A, TXT and MX. 

dns records

A: Responsible for mapping a domain name to an IP address.

CNAME: Provides information about the domain name’s alternative.

MX: A mail exchange (MX) record is basically a DNS record type that generally shows where the emails for a domain need to be routed.

TXT: TXT stands for text and lets the owner of the domain store text values in the DNS.

To exit the tool, type exit.

4. For using nslookup as a troubleshooting tool, you can set the specific type of record to lookup for a domain name by using the command: 

-type=record_type where record_type is MX, CNAME, PTR, NS, ANY.

troubleshooting tool

Type the nslookup -type=ns domain_name, where domain_name is the domain for your query and press Enter. The tool will then display the nameservers for the domain you have specified. 

Conclusion

Using the different nslookup commands, you will get all the information about your domain. It can also help you to troubleshoot DNS-related issues. In short, the nslookup tool provided with Windows offers great functionalities and is beneficial.

Hope this article has cleared the concepts to use the nslookup tool provided with Windows.

Nehal is an ardent content writer. She's passionate about crafting content that's simple but adds value. Her insatiable interest in writing has allowed her to explore her skills. She is adept and can write for different types of content formats.

Trusted By Thousands of Clients & Big Businesses

We highly appreciate the kind and stellar feedback we receive from our customers. Delivering the best is our goal! MilesWeb is rated Excellent out of 5 based on reviews. Read more reviews.

Excellent
Based on reviews
2 hours ago
Perfect and Valuable Server + ...
I am using MilesWeb Servers, The main thing which I getting are continuous support over everything w...
Gunjan Makwana
4 hours ago
Milesweb is superb Hosting pro...
Milesweb is superb Hosting provider ever, their Support team is amazing!!!...
Abhishek Singh
15 hours ago
Great support in great timing...
We need urgent assistance on changes in a primary domain on our client's Cpanel accounts and reached...
Riyaju Deen
21 hours ago
Best Website Hosting platform ...
I was new on MilesWeb. And needed help on multiple areas from setting up to getting started with cre...
Harshada
1 days ago
Very quick and helpful assista...
Very quick and helpful assistance. Support person listened properly and provided a nice solution....
Narendra
1 days ago
the team is very supportive th...
the team is very supportive though at times effort needs to be made to make understand the problem s...
Suree Sharma
1 days ago
I am using miles web for 3plus...
I am using miles web for 3plus years, very quick and perfect support by the team, they helped me man...
Sri Raghav
2 days ago
The service is good...
The service is good. They are answering with patience and doing the needful as soon as possible....
MR
2 days ago
Perfect and Valuable Server + ...
I am using MilesWeb Servers, The main thing which I getting are continuous support over everything w...
Gunjan Makwana
3 days ago
Very quick and helpful assista...
Very quick and helpful assistance. Support person listened properly and provided a nice solution....
Narendra
4 days ago
positively helped me with find...
positively helped me with finding insecure content on my website causing SSL to not work properly on...
Thaviraj Junglee
4 days ago
Exceptional support, Truly Pra...
I had opted for the basic wordpress hosting plan as I intended to experiment with various plug-ins. ...
Aseem Chandna