nerdexam
CompTIA

220-802 · Question #133

Which of the following commands will allow a user to discover their IP address, subnet, and DNS?

The correct answer is D. IPCONFIG /ALL. IPCONFIG /ALL is the command that outputs full network adapter details including IP address, subnet mask, default gateway, and DNS server addresses.

Networking

Question

Which of the following commands will allow a user to discover their IP address, subnet, and DNS?

Options

  • AIPCONFIG
  • BNETSTAT -A
  • CNSLOOKUP
  • DIPCONFIG /ALL

How the community answered

(34 responses)
  • A
    3% (1)
  • C
    6% (2)
  • D
    91% (31)

Why each option

IPCONFIG /ALL is the command that outputs full network adapter details including IP address, subnet mask, default gateway, and DNS server addresses.

AIPCONFIG

IPCONFIG without any switch shows IP address, subnet mask, and default gateway only - it does not display DNS server information.

BNETSTAT -A

NETSTAT -A displays all active TCP and UDP connections and listening ports, not IP configuration or DNS settings.

CNSLOOKUP

NSLOOKUP is used to query DNS servers and resolve hostnames, but it does not display the local machine's IP address or subnet mask.

DIPCONFIG /ALLCorrect

The IPCONFIG /ALL switch instructs the command to display all adapter configuration details, which includes the IPv4 address, subnet mask, default gateway, physical (MAC) address, and both primary and secondary DNS server addresses. The basic IPCONFIG command omits DNS server information, making /ALL necessary for the full picture.

Concept tested: IPCONFIG /ALL command output for network diagnostics

Source: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/ipconfig

Topics

#ipconfig /all#IP configuration#DNS lookup#subnet mask

Community Discussion

No community discussion yet for this question.

Full 220-802 Practice