The following steps will help you emulate DNS change through Windows 'hosts' on your PC.
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 that specifies to your PC what IP address a domain name should point to.
During the website migration process, while our Support team tests all migrations performed before marking it as complete, you can also test if the website is working exactly as expected. Our recommended way of testing your website before changing the DNS settings is through the use of a modified 'hosts' file.
Modifying your 'hosts' file allows you to override the DNS for a domain name, on your PC. By changing the 'hosts' file, you can send only your PC to the new server without affecting the live site at all by manually setting the IP address for a particular domain name and telling it where to go in stead.
To perform a 'hosts' file modification, you will need to first run 'Notepad as administrator'. This is because the 'hosts' file is a system file and cannot be modified otherwise.
To perform a 'hosts' file modification in Windows 7, follow the steps as mentioned below.
Note: Modifying the 'hosts' file on your PC incorrectly can interfere with name resolution. Make sure to keep a backup copy of the 'hosts' file before modifying it.
Once you have modified your 'hosts' file, it is recommended that you flush the existing DNS cache from your PC so that your 'hosts' file changes can take effect immediately.
Your DNS cache stores the locations (IP addresses) of web servers that contain web pages which you have recently viewed. If the location of the web server changes before the entry in your DNS cache updates, you cannot access the website. After you clear your DNS cache, your PC will query nameservers for the new DNS information.
To flush your DNS cache if you use Windows 7, perform the following steps:
The easiest way to see if your 'hosts' file modification worked is to run a ping test. To test that the domain name is pointed to the correct IP in your 'hosts' file, please follow the steps as mentioned below:
You are done with.
Updated on Nov 11, 2015
The techReview is an online magazine by Batoi and publishes articles on current trends in technologies across different industry verticals and areas of research. The objective of the online magazine to provide an insight into cutting-edge technologies in their evolution from labs to market.