Portal Home > Knowledgebase > Advanced > How can I see my website before I update nameservers?


How can I see my website before I update nameservers?




To test your domain before your DNS progigates or you change your Name Servers. You would have to edit the hosts file on your computer to point to the IP of the domain here on your account.

On your desktop computer open the file:

Windows Computers
%SystemRoot%\system32\drivers\etc\

Mac Computers
/etc/hosts

This file looks like this (obviously this is a copy of the Windows version of the file, the Mac OS X and Linux versions are exactly the same, but without the instructions at the top):
Code:

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost
123.123.123.123 youdomain.com

Edit and save the file (change 123.123.123 to your correct IP and change yourdomain to your real domain), every time THIS computer looks up yourdomain.com it will IGNORE whatever DNS says, and use the IP 123.123.123.123. This way you can put the IP address of the site on your new server, and not have to change what is published in DNS to test.

http://en.wikipedia.org/wiki/Hosts_file



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
What is DNS? (Views: 760)