Modifying the host file Posted by on 28 June 2014 01:57 PM
|
|
What is a host file? A hosts file is an address book, situated on your local computer that maps a host name to an IP address (network name resolution). Generally, a domain name (host name) is translated to an IP address via the DNS resolution process. However, the host entries that are present in the host file will bypass this DNS resolution. When will this be useful for you?
How do I do it? Here’s how :) For Windows:
That’s it. Flush your DNS cache and browser cache and you should be able to see your website from the server IP you specified in the host file. For Linux:
That’s it. Flush your DNS cache + browser cache and you should be able to see your website from the server IP you specified in the host file.
| |
|