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.
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.
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
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.
HOSTS File Locations. In Windows, the HOSTS file is in the \windows\system32\drivers\etc folder. In the Mac, it is in /private/etc. The first line of a HOSTS file contains the following. See
The hosts file is an elementary tool of a network protocol and converts host names into numeric IP addresses. The network can only work with these addresses. The hosts file is created in all common operating systems for PC, Mac, and mobile devices, and can be changed by system administrators.
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
O3eW4HM.
what is a host file