What is nslookup?

nslookup (name server lookup) is a command-line tool available on Windows, Linux, and macOS for querying DNS servers to resolve domain names to IP addresses, retrieve specific DNS records (A, MX, NS, TXT, etc.), perform reverse lookups, and troubleshoot DNS issues. It supports both non-interactive (single query) and interactive modes, allowing custom server queries and debug output. Key characteristics include direct DNS protocol interaction, support for various record types, and historical use despite modern alternatives like dig or host.

nslookup Debug Output Example

Basic nslookup Command Screenshot

nslookup DNS Propagation Test

nslookup Domain Controller Query

Why Understand nslookup?

Master nslookup for efficient DNS diagnostics and recon—knowledge of it prevents blind spots in network security. 🔒

Common Use Cases

nslookup Interactive Mode Example

Specifying DNS Server in nslookup