Skip to main content

How do I edit my hosts file in Windows XP?

To view your domain before you update your name servers at your registrar, you will want to temporarily put an entry for your domain and its IP address in the "hosts" file for your computer. For a Windows XP system, the file is located at c:\windows\system32\drivers\etc\hosts. Other operating systems may have the hosts file in a different location, use a different file or may not have it at all. Open the hosts file in a text editor like notepad.

A typical Windows XP hosts file will initially look like this:

# 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

You'll want to add a few lines at the bottom of the file as follows:

# 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 yourdomain.com #(you can add a description here)
123.123.123.123 www.yourdomain.com

Replace 123.123.123.123 with your real IP address and and yourdomain.com with the real address of your site. If you want, you can also add a description for each site after a '#' symbol after each site (refer to the above example).

This will force your computer to look at your new site when you use the name of your domain, instead of looking at your old site.

Important: Make sure that about a week after updating your DNS at your registrar that you remove the entry from the hosts file so you are able to access the new site normally. Failure to do this may cause problems in the future if your site changes its IP address.

Comments

Popular posts from this blog

All windows Operating Systems which were never released!!!!!!

Windows Cairo :-  Cairo was Bill gates vision of "information at your fingertips". Microsoft operating designers works on this operating system for almost 6 years 1991-1996. Cairo was announced at the 1991 Microsoft Professional Developers Conference by Jim Allchin. Microsoft also gave a demo O.S. to some pepole. Some key- feature of Cairo OS Cairo used distributed computing. User interface developed for Cairo was later used in Windows 95.    2. Nashville :- Nashville was operating system by Microsoft Windows scheduled to be released in 1996. Nashville added Internet integration features to the Windows 95 and NT 4.0 desktop. Nashville was the only operating system in which web browser (Internet Explorer 3.0) comes with inbuilt file manager. In Nashville Microsoft Office documents could be opened from Internet Explorer with the help of Activex T echnology. Wallpaper could be replaced by dynamic web-pages. [ Note:- Nashville OS beta version are availab...

What is Easter egg??

This article is Belongs to ester egg.i am sure that by reading first line one question is rises in  your mind.what is the connection between ester egg and computers?? but friends easter egg is one of the most interesting thing in computer world!!! yes thats true.. before i tell you types of ester egg in computer,what they do?i will tell you what is exactly an ester ? Easter is the central feast in the Christian liturgical year. what is exactly an ester egg is ? Easter eggs   are special eggs that are often given to celebrate Easter.on easter pepole paint eggs.but now adays people prefore eggs madeup of plastic or chocolate. Inside plastic or  chocolate egg people hide something for children. These eggs are often hidden and then children are  suppose to find them.  What is the connection between Easter egg and computer world? As ester eggs are hidden by people,pare...

How to change software \ program name in "open with" option

Many people get confused or does not remember what that program does For eg Winrar name of program does not specify its functionality it became more important when we have two or more options so here is better way Step 1 open start menu type run in search bar now type regedit it will open registry editor [ Note :- be careful while changing any other entry in registry editor as registry is consider to be an d.n.a. of windows operating system any change here will change the functionality of operating system] Step 2 For vista and Windows 7 follow path HKEY_CURRENT_USER > Software > Classes > Local Settings > Software > Microsoft > Windows > Shell > MuiCache For windows 2000 (NT),XP follow path HKEY_CURRENT_USER > Software > Microsoft > Windows > ShellNoRoam > MUICache Now you can see the list full of program names Step 3 look at right column for program name to be changed here am going to change "FireFox...