As we all know editing our \etc\hosts file is a common step for developing a site that you aren’t quite ready to launch. Its general that you know about DNS translates domain names like getmereview.com into IP addresses like 220.127.116.11. But a file on your Windows 10 PC that can override that. It’s been your hosts file and lets you map specific domain names to an IP address of your choosing.
Also your Hosts file only affects your computer, so you can use it to create custom URLs for IP addresses on your network, Also you can use it to connect with certain websites that providing error to load.
In Windows 10, your hosts’ file is located at: C:\Windows\System32\drivers\etc\hosts. You will need to edit the file with notepad administrative privilege.
8 Steps to Edit Your Hosts File
- Press the Windows button and type Notepad in the search bar.
- Right click on Notepad, then Run as Administrator.
- They ask , “Do you want to allow this app to make changes to your device?”.
- In Notepad, choose File then Open
- Go to C:\Windows\System32\drivers\etc\hosts or paste this address on the top and press Enter. If you don’t readily see the host file in the /etc directory then select All files from the File name: drop-down list, then click on the hosts file.
- Add the appropriate IP and host name at the end of your hosts’ file, select save and close the file.
FOR EXAMPLE :
Also add this before local host
- Finally, you will want to clear your DNS cache for computer to make changes to the file. Click the Windows button and search command prompt.
- Type the following command in the terminal and press Enter
Also do visit our site for any kind of help to develop site.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?