You need to map the domain name and the IP address in the hosts file if: • DNS records have been changed and your DNS provider has not updated the cache; • you need to access a website on a new or an old server from your PC without changing DNS.

To find out the IP address that maps to the domain name on your PC, you can use the ping command.

Go to the Start menu and find the Command prompt (you can click on the Start menu and enter "cmd" or "command prompt".

 2014-07-15-14-08-56_pohdahmaepiejahwoave.png

Type in ping example.com, where example.com is the website that you are interested in.

2014-07-15-14-10-47_ahjaiquevishoojeiche.png

To map the domain name to the IP address in the hosts file, open Notepad or any other text editor in the Start menu. Right-click on it and select Run as Administrator.

2014-07-15-14-08-15_eivuoshohhahfeimaelu.png

A window will open. You will be asked to either type in the administrator's password or to confirm access rights escalation. Type in the password and confirm.

2014-07-15-14-09-41_leewuethaveizudiefoh.png

Press File. Press Open.

2014-07-15-14-05-18_ohpeezoavieghohtodao.png

Open the c:\windows\system32\drivers\etc\hosts file.

2014-07-15-14-06-51_muquoigheepeeliushoo.png

By default, the file contains the following:

2014-07-15-14-07-02_phahghohyuijeegaoqua.png

Add the IP address and the domain name to the end of the document. Note that the string after the # symbol is not processed. You can add your comment there.

2014-07-15-14-07-46_eivesaahiechaevaalon.png

Let's check. IP should change. In rare cases, it is necessary to reboot the PC and/or clear the browser's cache.

2014-07-15-14-10-58_uxiequaexopohmeuvier.png