Concept:
DNS (Domain Name System) is a fundamental component of the Internet that acts like a directory service. It translates human-readable domain names (such as www.google.com) into machine-readable IP addresses (such as 142.250.x.x).
Step 1: Understanding DNS Functionality
When a user enters a website name in a browser, the DNS system performs the following:
• Queries DNS servers
• Resolves the domain name into an IP address
• Enables the browser to connect to the correct server
Step 2: Analyze each option
• Encryption data:
This is handled by protocols like SSL/TLS, not DNS.
• Mapping domain names to IP address:
This is the primary function of DNS.
• Assigning MAC address:
This is done by ARP (Address Resolution Protocol).
• Providing TCP acknowledgements:
This is handled by the TCP protocol at the transport layer.
Step 3: Conclusion
DNS is mainly responsible for mapping domain names to IP addresses.
\[
\therefore \text{Correct answer is (B)}
\]