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.
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)- A3% (1)
- C6% (2)
- D91% (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.
IPCONFIG without any switch shows IP address, subnet mask, and default gateway only - it does not display DNS server information.
NETSTAT -A displays all active TCP and UDP connections and listening ports, not IP configuration or DNS settings.
NSLOOKUP is used to query DNS servers and resolve hostnames, but it does not display the local machine's IP address or subnet mask.
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
Community Discussion
No community discussion yet for this question.