You are seeing the old Web Africa website because your version of internet explorer is out of date. Click here to download the latest version.
Web Africa - Home
Register your Domain
www
5 Notices

General > How to access your website before the domain is active using the HOSTS file - Web Africa > Support KnowledgeBase

KnowledgeBase

Please Enable Javascript
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
General
Article Number: 65
Views: 5033
Created By: Alan Kirton
Date Created: 07/08/2004
Last reviewed by: Rupert Bryant
Last updated: 13/03/2005


Comments
No Comments...



Article Rating
Average Rating: 4.5 (11 Votes)
Rate this article:
5 (Great!)
4
3
2
1 (Awful!)


Client Log In
User
Pass
Contact
0861-555-222
24 hours a day / 7 days a week
Live Assistance
News
WA acquires Frogfoot consumers MailFire: Email Marketing Launched! Hosting Overage Traffic Price Reduction
Testimonials
What a breath of fresh air, the service is beyond South African standards, all companies should take a page out of your customer service book. When another dept is busy you put thru to another dept and they can still help you. Keep up the spectacular service Regards Zane Eco Sundecks
- ZANE O'DONOVAN
Privacy PolicyTerms & ConditionsDisclaimerRefund PolicyAcceptable Usage PolicyEmail this page to a friendPrint
ISPA Member Copyright Web Africa 1996 - 2009. All rights reserved.
Site Map | ADSL | Web Hosting | Windows Hosting | Linux Hosting | Reseller | Reseller Hosting | Domain Registration | Dedicated Servers