The hosts file was used to resolve host names for decades before the DNS system was implemented, since way back in the ARPANET days. Since they were used to aide in network name resolution, hosts files grew to become massive documents.

\n \n \nwhat is a host file
What to Know Open Notepad or another text editor > select File > Open > open Host file. Next, select Text Documents (*txt) and change it to All Files > double-click hosts. Make changes and save. Here's how to edit the Windows HOSTS file, which is necessary to make custom domain redirects, block websites, or remove malicious entries set by malware.
Host files are text files that are used to map domain names to IP addresses, precisely what the DNS servers do. You can use them to streamline connecting to websites, and as such, sometimes you'll need to edit one. As such, this guide will explain what host files are on Windows, how you can edit it, and what to do if you're not able to do so.
The HOSTS file is a text file that contains IP addresses separated by at least once space and then a domain name, with each entry on its own line. For example, imaging that we wanted to make
What's a hosts file anyway? Back in the early days of the internet, before it was widespread, computers used a hosts file to map long, hard to remember IP addresses with much shorter, easier to remember hostnames. For example, here's a line you'll find in many hosts files on Windows, Linux, and macOs: 127.0.0.1 localhost
. 74 282 26 15 387 453 414 252

what is a host file