Prepare for the CompTIA Network+ Exam. Utilize interactive quizzes and multiple-choice questions with explanations. Boost your readiness and achieve exam success now!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


Which of the following files helps with local name resolution on a network?

  1. hosts file

  2. named.conf file

  3. resolv.conf file

  4. zone file

The correct answer is: hosts file

The hosts file is a simple text file used for local name resolution on a network. It maps IP addresses to hostnames, allowing the system to resolve a hostname to an IP address without needing to query a DNS server. When a system tries to access a hostname, it will first check the local hosts file for a corresponding IP address entry. If an entry is found, the system uses that information for the connection, which can speed up the resolution process and is particularly useful in local networking situations or in environments where DNS services may be limited or unavailable. The other files mentioned serve different purposes in network naming and resolution. The named.conf file is used for configuring DNS server settings, while the resolv.conf file contains information about DNS servers to query, and the zone file is utilized to define mappings between domain names and their corresponding IP addresses for DNS zones managed by a DNS server. None of these files perform local name resolution in the way the hosts file does.