nslookup queries DNS from the command line on Windows, macOS and Linux. It is the quickest way to see what a name resolves to and which server answered.
| No. | Step | Source | Destination | Type | Info |
|---|---|---|---|---|---|
| 1 | Ask DNS | your laptop | internal resolver | REQUEST | A? example.com |
| 2 | Ask DNS | internal resolver | your laptop | RESPONSE | A 203.0.113.10 |
nslookup queries DNS from the command line on Windows, macOS and Linux. It is the quickest way to see what a name resolves to and which server answered.
nslookup name uses your default resolver; nslookup name 8.8.8.8 asks a specific server.-type=MX, -type=TXT and -type=NS query other record types.