DNS Host File is useful for a developer to test their web design when a site is not fully designed from the Internet, you could use this method to assume the web host IP location with the domain name.
Below are the paths for different Operating System.
To get it modified, simply open an editor from your PC, open the above file according to your Operating System,
Enter the format as below,
[IP] [domain name]