April 29, 200521 yr I tried using a hosts file which maps a bunch of bad hosts (e.g. malware sites, porn, etc.) to 127.0.0.1 to block my PC from accessing these or sending packets to them.However it seems to cause intermittent instability on XP. For example, pings to valid hosts (e.g. www.google.com) take a long time to succeed, or do not succeed at all; at other times they work instantly. Changing the hosts file (adding or removing) causes the behavior to get better or worse, but its unpredictable - sometimes adding hosts cures the problem temporarily, which makes no sense.Blowing away the file cures the problems instantly. Also if I ping a numerical address it always works fine. My DNS server isn't listed but I still have random problems with pinging it.I didn't have any problems whatsoever on 98 SE so I am wondering if there are known problems with the HOSTS file functioning properly on XP? Or could this just be a problem specific to this particular PC? Any ideas? My hosts file has about 80,000 entries and is 2.4 MB. Does XP have some kind of limit?
April 29, 200521 yr 80,000 entries is a lot of entries. Why haven't you installed SP2?I have never had that kind of problem with a hosts file but I have never had one that large.Have you checked for spyware/virus?
April 29, 200521 yr My hosts file has about 80,000 entries and is 2.4 MB.<{POST_SNAPBACK}>That's the problem right there, HOSTS is just a text file that gets searched before a DNS query is sent out. Look through it yourself for a unique entry and see how long it takes you.
April 30, 200521 yr Author It's a 3 GHz P4, XP, with 1 GB RAM. So a 2.5 MB file should not bring it to its knees!I also use Athlon 3400 1 GB RAM 98 SE with the same file and its extremely fast and responsive - no slowdowns whatsoever.Maybe the XP PC is misconfigured somehow? I tried cutting the file in half but the random problems and slow downs persisted.
May 1, 200521 yr @azagahl:Try disabling the DNS Client service. I've had many problems with it together with HOSTS file on various computers (mostly slow booting).GL
May 1, 200521 yr Your hosts file is way too big.I have a large one and it's only 16000 entries.I don't know how your network is set up butI had to change all my hosts entries to redirectto 0.0.0.0 instead of 127.0.0.0 because of the waylocalhost wants to be 127.0.0.1. It was causing some problems.Purge your dns cache if possible.
Create an account or sign in to comment