How to use the host file on windows XP/2000

D

Deepak Dhake

How to use the host file on windows XP/2000 so that it is
used instead of a dns lookup? Any suggestions? Please
give me instructions.

Thanks in advance.
_deepak
 
M

microb

you should type in hosts file this

127.0.0.1 www.xxxsite.com
127.0.0.1 www.myx.net



etc

and when you type www.xxxsite.com in explorer , then it is redirected to
127.0.0.1 which is your computer , so no dns here, and all this in no time.
this way u avoid some unwanted sites with adds.

you could use this as well

66.94.230.36 www.yahoo.com

but you better use opera browser from www.opera.com it is the best. (
internet explorer is not very good)
 
J

Jim Byrd

Hi Deepak - First, you should understand that the original purpose of the
HOSTS file (BTW, it should always be named this way - all caps, no
extension) was to provide a local (therefore fast) translation from URLs to
IP addresses for frequently visited sites (typically your Favorites). It
can still be used this way (I do so, for example - there are utilities
available such as CIP, http://dl.winsite.com/bin/downl?500000007704 which
will convert your Favorites to IP's which you can then saveas and then copy
into your HOSTS file), but has also come to be used to block ad/malware
servers. See here for some good info about this use:
http://www.mvps.org/winhelp2002/hosts.htm

This site also has downloads for some utility programs which you will find
useful if you decide to use a HOSTS file such as RenHosts.bat,
http://www.mvps.org/winhelp2002/RenHosts.bat, and lockhosts.bat and
unlockhosts.bat, http://www.mvps.org/winhelp2002/lockhost.bat, and
http://www.mvps.org/winhelp2002/unlockhost.bat. The lock and unlock files
can be used to protect the HOSTS file in between UPDATES so that it doesn't
get hijacked by malware, while the rename hosts program will allow you to
easily enable or disable the HOSTS file (while keeping the correct naming
convention).

As to size/performance - with any relatively modern computer the delay added
by the HOSTS lookup overhead should be negligable for even moderately large
HOSTS files (typically 250KB to 500KB) used for ad/malware blocking. If you
use it also for DNS-to-IP caching as I refered to above, the time saved over
going out to the net for DNS lookups will offset this many times. If fact
you'll notice a considerable speedup in "normal" address browsing.

--
Please respond in the same thread.
Regards, Jim Byrd, MS-MVP



In
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top