Do you need to to edit your Windows XP Host file? Need to add custom entries?
Might be very helpfull when your ISP DNS is down or moving host.
Windows XP HOST file is located in “C:\WINDOWS\system32\drivers\etc\”
(provided C:\WINDOWS\ is your windows installation directory)
Now open the file “hosts” with WordPad.
(Double click on the file… should come up with “open with” dialogue box. … choose “WordPad” from the list)
The file should contain the following:
# 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
Now add entries you want to. The syntax is:
IP[space]HOST
IP: IP Address of the server. Like 207.58.166.239
HOST: Domain Name. Like www.dotcomunderground.com
Example:
207.58.166.239 www.dotcomunderground.com
NOTE:
1. There MUST be a SPACE between the IP and HOST name
2. Each entry should be kept on an individual line. ie. hit ENTER / return key after every entry.
SAVE IT.
It works pretty dynamic. You dont need to restart for the changes to show up. Simply save it and it shouls work instantly





Download PDF
January 29th, 2006 at 2:14 am
[...] After that we would need to learn how to add IP/Host Name entries in the windows host file. Read my other tutorial How to modify Windows XP Host File for that. [...]
February 3rd, 2006 at 7:45 pm
Can i do something so there will be this way?
http://www.domain.com [space] http://www.domain2.com instead of:
ip number [space] http://www.domain2.com
Please let me know!
February 4th, 2006 at 2:28 am
@Marius
i tested wht u said… didnt work
only IN A available i guess.. no CNAME
April 13th, 2006 at 5:58 pm
[...] (A tutorial on How to modify Windows XP Host File [...]
May 10th, 2006 at 2:44 am
[...] (A tutorial on How to modify Windows XP Host File ) [...]
June 20th, 2007 at 9:26 am
I have a problem when i Click on my download manager. when i click on it said it can’t open the file msn.downloadhost. how do i fix the problem…
May 31st, 2008 at 4:06 pm
[...] [...]
June 12th, 2008 at 11:36 am
[...] [...]