Which protocol is used to resolve a hostname such as www.example.com into an IP address?
DNS maps hostnames to IP addresses.
Why this answer
Exam trap
A frequent exam trap is mistaking DHCP for DNS because both protocols are essential IP services and often appear together in network configurations. Candidates may incorrectly select DHCP, thinking it resolves hostnames, but DHCP only assigns IP addresses and network parameters, not name resolution. Another trap is confusing NTP or SNMP with DNS due to their roles in network operations; however, NTP synchronizes time and SNMP manages devices, neither resolving hostnames.
Understanding that DNS specifically maps domain names to IP addresses prevents this common mistake.
Why the other options are wrong
DHCP is incorrect because it only leases IP addressing information and other network parameters to clients; it does not translate hostnames to IP addresses, which is the core function of DNS.
NTP is incorrect as it is used solely for synchronizing clocks across network devices and does not handle any form of hostname or IP address resolution.
SNMP is incorrect because it is a protocol for monitoring and managing network devices, not for resolving hostnames or IP addresses.