The computer file hosts is an operating system file that maps hostnames to IP addresses. It is a plain text file.
Where can I find the hosts file?
The hosts file is a plain text file used to map host names to IP addresses. On Windows, it is located in the C:\Windows\System32\drivers\etc folder.
What is hosts file used for?
A Hosts file is a file that almost all computers and operating systems can use to map a connection between an IP address and domain names. This file is an ASCII text file. It contains IP addresses separated by a space and then a domain name. Each address gets its own line.