| What is a HOSTS file and how do you edit it? | Article ID:213 |
The HOSTS file on your Windows PC is used by Windows as a place to lookup hostnames for IP addresses before checking DNS. Let's explain: When you need to go to www.somedomain.com, your computer needs to actually "resolve" that name to an IP address... i.e., what is the IP address of the server that is hosting www.somedomain.com. To resolve that IP address, your system will FIRST look in your HOSTS file, which is simply a text file with a list of hostnames mapped to IP addresses. Typically, it's empty, as it's just there for specific purposes. When www.somedomain.com isn't found there, then your computer will check with your ISP's DNS servers (ISP = Internet Service Provider). As you can see, because your computer checks in this order, hosts file first, then DNS servers, if you put an entry in your hosts file, you can effectively override what is in DNS. A neat trick that's helpful sometimes in troubleshooting, or publishing a site with FrontPage before DNS is actually pointing to the right IP address. To edit your hosts file, follow these steps:
|
|
| Downloads associated with this article: | |
| No downloads associated with this article | |