Tutorial: How to see a site at your new location before changing the DNS

Discussion in 'Web Hosting' started by Elvis Wong, May 21, 2014.

  1. #1
    How to see your site on another host before actually changing the DNS settings at your registrar.

    Did you know that you could see if everything is working fine on the new host (when you need to transfer a domain) by playing with your host file on your PC ?

    For instance on Windows 7, you open your host file located at:
    c:\windows\system32\drivers\etc\hosts
    [​IMG]
    So if you site was facebook.com and your new host ip would be ex: 123.123.123.123
    Well you would change 0.0.0.0 to
    123.123.123.123
    then save the file and reload a fresh copy of your browser.
    You can also add more than one domain/line in the host file.
    So it could like this

    123.123.123.123 yoursite.com
    123.123.123.123 yoursite2.com
    123.123.123.123 yoursite3.com
    and so on

    Hope it helps
     
    Elvis Wong, May 21, 2014 IP
  2. Premium_Domain_sales

    Premium_Domain_sales Active Member

    Messages:
    224
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    80
    #2
    Nice tutorial.

    we can also get the same result when we flush our local dns by cmd.
     
    Premium_Domain_sales, Jun 6, 2014 IP