Knowledgebase

Portal Home > Knowledgebase > Domain > Changing your HOSTS file before DNS propagation

Changing your HOSTS file before DNS propagation

After buying a domain, it may take up to 2 days before it propagates. Below is a workaround to access the new site while the domain is propagated.

Windowr

The HOSTS file on your computer is located in the following location:
Windows – C:\windows\system32\drivers\etc\hosts
Open this file with Notepad - Run as Administrator.

 Insert at the line at the bottom of the file

123.123.123.123 example.com

Now save your changes.

Run “cmd” and hit enter. Type the following:
ipconfig /flushdns
Browse to your site using http://example.com/ or http://www.example.com/


 

Also Read

Powered by WHMCompleteSolution