How To Edit Hosts File in Windows
By viveknayyar007 See all their Tutorials
Host files are the files used by Microsoft TCP/IP for windows. It shows the mapping of the IP address with its corresponding Host name. It helps to access any web site or web page easily. Mapping the IP addresses with their Host names also help to resolve DNS issues.
DNS is responsible to map or access a web site. It translates the host name or the web site name to its corresponding IP address, thereby providing access to the respective web site or web page. If there is any problem in the DNS, the communication to any web page becomes difficult.
The host files map the IP address to its Host names thereby making the DNS lookup easy. If you specify any IP address and its corresponding host name, the work of DNS becomes simpler, thereby making the lookup faster, and the web site can be accessed more easily. Host files can also be used to block any web site on your system. Here, the web site name is specified and a default IP address is set to it. Now, whenever a user tries to access this website it is not located by the DNS.
Host files are generally READ ONLY, in other words you cannot modify them in general. To edit a host file, you need to remove it from READ ONLY constraint and then move it anywhere else to edit it. It can be edited using NOTEPAD.
Path to Host File
C - > Windows - > System32 - > drivers - > etc - > hosts
To edit the host file: