|
5 Notices
|
KB Home >
General
>
How to access your website before the domain is active using the HOSTS file
|
Using your host file to access your website if the domain is not active , or is still pointing to your old hosts This method overrides DNS servers to force your computer to recognise a domain name with a given IP. You can open this by going Start Menu -> Run Type: notepad c:\windows\system32\drivers\etc\hosts On Windows 98/95/ME this will be: Type: notepad c:\windows\hosts (you may need administrator access for Windows NT/2000/XP) NOTE: Hosts is the name of the hosts file and not another directory name. It does not have an extension (extensions are the .exe, .txt, .doc, etc. endings to filenames) and so appears to be another directory in the example above. # Copyright (c) 1998 Microsoft Corp. # This is a sample HOSTS file used by Microsoft TCP/IP stack for Windows98 # 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 If other data is in your Hosts file, you will definitely want a backup before you proceed, so make one now. Once you have backed your host file add the entries you require under the 127.0.0.1 localhost The entry myst be in this format "IP address domain" so it sould look like this after you have finnished # Copyright (c) 1998 Microsoft Corp. # This is a sample HOSTS file used by Microsoft TCP/IP stack for Windows98 # 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 196.7.18.82 mydomain.co.za 196.7.18.82 www.mydomain.co.za Replace mydomain.co.za with your own domain name. Please contact us for the IP address. Default for SA servers is 196.7.18.82 and US servers is 69.93.1.130 but this may change or become outdated. Once you have added your entry be sure to save the file as hosts and not hosts.txt Please close all your browser windows and re-open it. Now you can access the new website through your browser. Note once your domain has been transferred it is advised to remove this information from the hosts file as it may override any DNS changes that happen in the future. |
Mail |
Print| Additional Info |
![]() |