Which service would a client most directly rely on to convert `server.example.com` into an IP address?
Trap 1: ARP
Address Resolution Protocol operates at Layer 2 (data link) and maps a known IPv4 address to a MAC address on a local subnet. It is used after a host already knows the destination IP, typically obtained via DNS, and needs to encapsulate frames. ARP never resolves hostnames; it resolves IP-to-MAC mappings within a broadcast domain. Thus, it cannot convert a hostname into an IP address.
Trap 2: NTP
Network Time Protocol is used to synchronize the clocks of network devices and hosts to a time source such as an atomic clock or GPS. It ensures that timestamping for logs, authentication, and scheduling is consistent across devices. NTP has no role in name resolution; it operates on the application layer to distribute time, not addressing information. A client would never query NTP to convert a hostname.
Trap 3: CDP
Cisco Discovery Protocol is a proprietary Layer 2 protocol that allows Cisco devices to share information about directly connected neighbors, such as device type, IP address, and platform. CDP is used for network discovery and mapping, not for resolving hostnames requested by a client. A client application does not rely on CDP to translate a name into an IP; CDP advertisements are sent to a multicast address and are not consulted by typical host processes. Therefore, CDP is unrelated to hostname resolution.
- A
DNS
The Domain Name System is the service that directly performs hostname-to-IP address resolution. When a client types a URL like www.cisco.com, it sends a DNS query to a resolver, which returns the corresponding IPv4 or IPv6 address. This is the fundamental name resolution service on which applications rely before establishing TCP connections. Without DNS, users would need to memorize numeric IP addresses.
- B
ARP
Why it fails: Address Resolution Protocol operates at Layer 2 (data link) and maps a known IPv4 address to a MAC address on a local subnet. It is used after a host already knows the destination IP, typically obtained via DNS, and needs to encapsulate frames. ARP never resolves hostnames; it resolves IP-to-MAC mappings within a broadcast domain. Thus, it cannot convert a hostname into an IP address.
- C
NTP
Why it fails: Network Time Protocol is used to synchronize the clocks of network devices and hosts to a time source such as an atomic clock or GPS. It ensures that timestamping for logs, authentication, and scheduling is consistent across devices. NTP has no role in name resolution; it operates on the application layer to distribute time, not addressing information. A client would never query NTP to convert a hostname.
- D
CDP
Why it fails: Cisco Discovery Protocol is a proprietary Layer 2 protocol that allows Cisco devices to share information about directly connected neighbors, such as device type, IP address, and platform. CDP is used for network discovery and mapping, not for resolving hostnames requested by a client. A client application does not rely on CDP to translate a name into an IP; CDP advertisements are sent to a multicast address and are not consulted by typical host processes. Therefore, CDP is unrelated to hostname resolution.