Network

The nslookup command

Queries DNS interactively or directly. Classic and also available on Windows.

Syntax

nslookup dominio [servidor]

Copy-ready examples

$ nslookup miguelacm.esQuery a domain

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • Its output is more verbose than host and less technical than dig.

Related commands

FAQ

Why is it so widely used?

Because it exists the same on Windows, Linux and macOS.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course