How can I modify a hosts file? How can I modify a hosts file?

The hosts file allows you to define the association between IP addresses and domains. It's a system, present in any PC and operating system, which sets in before the DNS resolution.
The modification of a hosts file can be very useful in many circumstances, such as a domain transfer. The operation will allow you to connect to your website on your new hosting before the domain transfer is fully processed and the DNS names are changed. You will have the opportunity to process several control operations before the transfer is completed.

The hosts file is usually placed in the following positions:
  • C:\windows\systems32\drivers\etc (Windows systems)
  • /etc/hosts (Linux and Mac systems)

To modify the hosts file, attach the string in the original content of the hosts file. Obviously, replace "" with the IP address of your website and "" with the name of your domain.

For example:

If the modification doesn't work correctly, make sure to delete cache and cookies in your browser. After this operation, you won't have any problem in connecting to your website. If you have an antivirus operating on your computer probably it won't be possibile to modify the hosts file. We suggest you to disable it temporary and try again.
Have you found it useful?

share Related research