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

Play Music through CMD-

Some of my freinds were curious to know that how to play music through cmd so here are the two solutions that i have - SOLUTION 1: If u wan't to play the song with whichever player u have in default , just do the following- Goto to place where you have your song . Let me tell you how- For eg- I have my song stored in H drive inside a folder named SONGS. So command in my case would be H: Press Enter Type cd SONGS Press enter Type start jumbo (your song name).flv(song's extension) Press enter and you are done enjoy the song!!! :-) SOLUTION 2: Just download a software named Mpxplay . It looks like following - Mpxplay is a commander-style audio player for DOS and Win32 (Win2K,XP,Vista,Win7) operating systems, developed in OpenWatcom Cv1.9. Files that it supports - - Audio: AAC , AC3 , ALAC , APE , FLAC , MP2/MP3 , MPC , VORBIS , WMA , WV and CDW (Audio CD ripp'n'play) (with plugins: DTS , MOD , SPEEX ) - Containers: AIF, ASF/WMA, AVI, MKV/WEBM, MP4/MOV, MPG/VOB, OGG

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 available o

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,parents for there children in same way in computer world some  message,program,song or even movie hide some where