cmdxray / commands / nslookup

What does nslookup do?

query DNS name servers for a domain's records interactively or in one shot.

▸ Explain your own nslookup command →

nslookup examples, explained

$ nslookup example.com

  • nslookupquery DNS name servers for a domain's records interactively or in one shot
  • example.coman argument passed to the command

$ nslookup -type=MX example.com

  • nslookupquery DNS name servers for a domain's records interactively or in one shot
  • -type=MXquery this record type (e.g. -type=MX, -type=NS)
  • example.coman argument passed to the command

nslookup flags & options

-typequery this record type (e.g. -type=MX, -type=NS)
-queryquery this record type (alias of -type)
-debugshow the full debugging detail of each response
-portquery the server on this port instead of 53

Other commands

Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.