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

Enhance Home router capabilities

The day is not so far away when we found ourself saying "Remember those days when we used to surf Internet using wired connections"  WiFi  technology is becoming more and more popular every passing day.According to Cisco's visual networking index "There will be more wifi users then wired users till year 2015". that's true WiFi is so convenient for us.As a result most people prefer to use Internet wirelessly using WiFi routers. WiFi routers of Manufacturing companies like for eg. cisco Linksis,Tp-link,d-link,Netgear are popular and they all produces routers at very chipper cost with descent features like eg-NAT, ACL, Bandwidth control, Port  security etc. But Really those router  Manufacturers   gives us all the  features  that router is capable of? and the  obvious   answer is "NO".If they do then who will purchase...