NSLOOKUP is a simple command-line tool used to query DNS (Domain Name System) servers. It is often used by IT professionals to troubleshoot website, email, and network issues.
Introduction
Every time you visit a website, your computer needs to convert a name into an IP address that computers can understand.
This process is performed by DNS.
When websites, email services, or applications stop working, NSLOOKUP can help determine whether DNS is the cause of the problem.
What Is NSLOOKUP?
NSLOOKUP stands for: Name Server Lookup
It allows you to query DNS servers and view the information they return.
NSLOOKUP can help answer questions such as:
✅ Is a website resolving correctly?
✅ Is DNS working?
✅ What IP address does a website use?
✅ Are email records configured correctly?
Opening NSLOOKUP
Step 1
Open Command Prompt. Type nslookup
You should see something similar to:
Default Server: dns.example.localAddress: 192.168.1.1
Looking Up a Website
To find the IP address of a website: nslookup www.microsoft.com
Example output:
Name: www.microsoft.com
Address: 13.107.246.40
This confirms that DNS is working and provides the IP address returned by the DNS server.
Testing a Different DNS Server
You can query a specific DNS server.
Example:
nslookup www.microsoft.com 8.8.8.8
In this example: 8.8.8.8 is Google’s public DNS service. This can help determine whether a problem exists with your normal DNS server.
Troubleshooting Website Problems
The Problem
A user reports:
“I can’t access a website.”
Investigation
Run: nslookup www.example.com
Successful Result
Name: www.example.com
Address: 192.168.1.10
DNS is working.
Look elsewhere for the problem.
Failed Result
“DNS request timed out” or “Non-existent Domain” – This suggests a DNS issue.
Looking Up Email Records
Email systems rely on DNS records known as: MX Records
To view them: nslookup
then type: Set type=mx
then enter the domain: example.com
This is useful when troubleshooting email delivery issues.
When Should You Use NSLOOKUP?
NSLOOKUP is useful for:
✅ Website troubleshooting
✅ DNS investigations
✅ Email delivery problems
✅ Verifying DNS changes
✅ Checking DNS server responses
✅ Comparing different DNS providers
Key Takeaway
NSLOOKUP is a simple but powerful troubleshooting tool that allows you to query DNS servers and view the information they return. Whether you’re investigating website access problems, DNS issues, or email delivery failures, NSLOOKUP can quickly help determine whether DNS is functioning correctly and where a problem may exist.
