After you update your domain's name server settings, DNS propagation can take 24 hours to complete. During this time, you cannot use your domain name. However, you can bypass DNS and view your web site by using a shared URL or the hosts file.
This is the recommended method, because you do not have to modify any configuration files on your local computer.
A2 Hosting provides shared URLs that enable you to access your web site without using its domain name. The URL you use depends on the type of account you have, and which A2 Hosting server hosts your account. To view the correct shared URL for your account, log in to the A2 Hosting Customer Portal at https://my.a2hosting.com. Select from the menu. In the list of products and services, locate what you want to change, and then click it. Alternatively, for information about how to determine the shared URL for your account, please see this article.
Another method for bypassing DNS is to use the hosts file on your local computer. The hosts file contains domain name to IP address mappings. These mappings mimic the function of a DNS server, and allow you to “trick” your computer into associating a domain name with a particular IP address.
To use the hosts file to bypass DNS for your domain, follow these steps:
This starts Notepad with the elevated privileges necessary to open, modify, and save the hosts file. Note that in Notepad's Open dialog, you must use the All Files filter to see the hosts file.
When you open the hosts file, you should see an entry that resembles the following line:
To create a new mapping for your domain, add the following line to the file:
188.8.131.52 example.com www.example.com
Replace the IP address with your A2 Hosting server's IP address, and replace example.com with your web site's domain name. You can obtain your account's IP address by logging in to http://my.a2hosting.com.
Save the hosts file and exit the text editor.
To test the configuration, restart your web browser and go to http://example.com or http://www.example.com, where example.com represents your domain name. You should see your web site's main page (assuming you have created some content).
Modern browsers increasingly expect SSL connections and generate error messages when SSL is not used. To get the best preview of your site before DNS updates, use one of the following methods. These methods only work with the hosts file method described above.
If your site currently has an SSL certificate, you can move it to your new location. To move the SSL certificate, make a copy of the certificate and the private key. It is not necessary to move files; you can simply copy the certificate and key to your computer's clipboard and then paste it in place. For information about how to enter the certificate and key into your hosting contol panel, please see this article.
If you do not already have an SSL certificate, you can create one and use it temporarily to view your site with SSL. When your site is ready to go live, you should replace the self-signed certificate with a certificate from a recognized certificate authority (CA). For information about how to install a self-signed certificate, please see this article.
For more information about the hosts file, please visit http://en.wikipedia.org/wiki/Hosts_(file).
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.