Home » Tips & Tricks » Preview Website before DNS Update

Preview Website before DNS Update

After migrating the website to new server, we need to make sure that everything working fine. Preview website before DNS update. Once you update the DNS, website will start serving from the new server.

Here is the tricks to preview website before DNS update.

Step 1 : Modify hosts file

You must received information about your new server’s login information including server IP address.
Add the IP address pointing to your website.

Open “C:\Windows\System32\drivers\etc\hosts” file with administrator’s privilege.
Add a line similar like

123.123.123.123           example.com www.example.com

It looks like

edit hosts file

Linux and Mac users, edit “/etc/hosts” file.

Step 2 : Clear browser cache

Once you are done with the ‘hosts’ file, clear browser cache.

Now the website should fetch from your new server.

Kindly share your valuable feedback in the comment section.

Check Also

Install Plex media server in Ubuntu 16 CLI

Plex is very well known media server. It became very popular due to its simplicity …

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: