What is Nslookup?

 

  • Stands for: Name Server Lookup

  • Purpose: to get information about domain names, IP addresses and DNS records by querying DNS servers

  • Use: diagnosing network problems, verifying domain configurations, checking mail servers

💻 Basic Usage

🔹 Finding the IP Address of a Domain

bash
nslookup example.com

example.com Shows the IP address that corresponds to this domain name.

🔹 Finding the Domain Name of an IP Address (Reverse DNS)

bash
nslookup 8.8.8.8

Shows the domain name information of the Google DNS server.

🔹 Querying Specific DNS Records

  • MX (Mail Exchange) Record:

bash
nslookup -query=mx example.com
  • NS (Name Server) Record:

bash
nslookup -query=ns example.com
  • CNAME (Canonical Name) Record:

bash
nslookup -query=cname www.example.com
  • ANY (All records):

bash
nslookup -query=any example.com
 

⚙️ Advanced Usage

🔸 Querying with a Specific DNS Server

bash
nslookup example.com 8.8.8.8

example.com queries this domain name via the Google DNS server (8.8.8.8).

🔸 Interactive Mode

bash
nslookup

After typing the command, you enter interactive mode. Then you type your queries:

bash
> set type=mx
> example.com
 

📌 Useful Parameters

Parameter Description
-query=TYPE Specifies the query type (A, MX, NS, CNAME, ANY)
-timeout=SECONDS Timeout
-port=NUMBER Port to use for the DNS query (default: 53)
-debug Detailed query output
 
 

Nslookup is built into both Windows and Linux systems. It is an indispensable tool for network administrators, system specialists and technical support teams.

 

  • 59 Users Found This Useful
Was this answer helpful?

Related Articles

What is Web 3.0?

Web 3.0 is described as the third phase of the Internet: a decentralized, user-centric,...

Blockchain

Blockchain is a technology infrastructure that stores digital data in a decentralized, secure and...

Artificial Intelligence

  Artificial intelligence (AI) is defined as the ability of computer systems to perform tasks...

🔌 Most Common Ports and What They Do

🔌 Most Common Ports Port No Protocol Description 20/21 FTP File transfer (File Transfer...

🌐 Technical Networking Terms (Network Management)

Technical Networking Terms Term Description IP Address The identity of devices on the...