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.
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.
.