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...

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...

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...