Lably
Skip to content

Hosts (file)

Computer configuration file to map hostnames to IP addresses

  • 5 min read
  • 6 chapters

Related on Lably

Through IP address, ARPANET and File system

Purpose

The hosts file is one of several system facilities that assists in addressing network nodes in a computer network. It is a common part of an operating system's Internet Protocol (IP) implementation, and serves the function of translating human-friendly hostnames into numeric protocol addresses, called IP addresses, that identify and locate a host in an IP network.

In some operating systems, the contents of the hosts file is used preferentially to other name resolution methods, such as the Domain Name System (DNS), but many systems implement name service switches, e.g., nsswitch.conf for Linux and Unix, to provide customization. Unlike remote DNS resolvers, the hosts file is under the direct control of the local computer's administrator.

Sign in to keep reading

5 more chapters are free with a Lably account.

More in Computing and communication