Hosts file
Updated: 11/16/2019 by Computer Hope
A hosts file is a local file stored on the computer that translates domain names or NetBIOS names into an IP addresses.
When looking up an IP address, the computer first looks at the hosts file to resolve the name. If the name is not in the local hosts file, it tries resolving using a DNS (domain name system), and if also not found, the look up fails.
Tip
Microsoft Windows users should also see the lmhost definition for further information about configuring the Windows lmhost file.
Example of hosts file line
In the example below, the line translates 216.58.216.164 into the Google domain.
216.58.216.164 google.com