Digital Marketing

Editing Windows host file

In Windows, the hosts file is located at C:\Windows\System32\drivers\etc\hosts. 

You will need to edit the file with administrative privileges.


Step 1.
Click the Windows button and type ‘Notepad’ in the search box.

Step 2.
Right-click on ‘Notepad’ and then ‘Run as Administrator’.

Step 3.
Choose ‘Yes’ on the User Account Control pop-up.

Step 4.
In Notepad, choose ‘File’ then ‘Open’.

Step 5.
Click the address bar at the top and paste C:\Windows\System32\drivers\etc\hosts – then choose ‘Enter’.

Step 6.
Choose Notepad from the list and then OK.

Step 7.
Add/Edit the appropriate IP and hostname, select Save, and close the file.

Step 8.
Next, you will want to flush your DNS cache so you don’t have to log out and back in for the changes to take effect.

Step 9.
Lastly, open an elevated command prompt as above, and enter the following command:

admin@host:# ipconfig /flushdns

Comments

Popular posts from this blog

MySQL Sandbox with the Sakila sample database