0Pricing
Network+ Academy · Lesson

Querying DNS With Nslookup

Look up records and diagnose name-resolution problems.

What Nslookup Does

nslookup (name server lookup) queries DNS directly, letting you ask "what IP does this name resolve to?" and inspect DNS records. While ping by name tests DNS indirectly, nslookup tests it on purpose and in detail. It is the primary command-line tool for diagnosing name-resolution problems, available on Windows, Linux, and macOS.

nslookup example.com

Why Query DNS Directly

Many outages are really DNS problems in disguise: a site "down" that is actually unresolvable, or one that points to the wrong server. Querying DNS directly with nslookup separates name resolution from connectivity. If nslookup returns the right IP, DNS is fine and you look elsewhere; if it fails, you have found the cause.

All lessons in this course

  1. Testing Reachability With Ping
  2. Mapping the Path With Traceroute
  3. Viewing Settings With Ipconfig
  4. Querying DNS With Nslookup
← Back to Network+ Academy