Which command is used to diagnose DNS problems by querying name servers?

nslookup queries DNS to help diagnose name resolution.

Start playing free

  1. nslookup ✔
  2. gpresult
  3. pathping

Why: nslookup lets you ask a DNS server for a record, such as the IP address for a name. If the name fails to resolve here, DNS is the likely culprit.

Huh, didn't know that: Inside nslookup, the help subcommand displays a short summary of subcommands.

The dad joke
DNS is like a phone book that only works if you spell the name right.
Like this card?
Play the game

References

Answer: nslookup. nslookup lets you ask a DNS server for a record, such as the IP address for a name. If the name fails to resolve here, DNS is the likely culprit.

  1. nslookup command reference, Microsoft Learn learn.microsoft.com/en-us/windows-server/administration/windows-commands/nslookup
    Displays information that you can use to diagnose Domain Name System (DNS) infrastructure.
    Checked 2026-10-10.

Think this answer is wrong? Tap "Challenge this answer" on the card in the game and tell us why.

Test yourself in the game