azagahl Posted April 29, 2005 Share Posted April 29, 2005 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? Link to comment Share on other sites More sharing options...
Ge0ph Posted April 29, 2005 Share Posted April 29, 2005 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? Link to comment Share on other sites More sharing options...
Marsden Posted April 29, 2005 Share Posted April 29, 2005 Sure it will crawl like a dog if you have wimpy hardware... Link to comment Share on other sites More sharing options...
D.Celt Posted April 29, 2005 Share Posted April 29, 2005 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. Link to comment Share on other sites More sharing options...
azagahl Posted April 30, 2005 Author Share Posted April 30, 2005 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. Link to comment Share on other sites More sharing options...
GrofLuigi Posted May 1, 2005 Share Posted May 1, 2005 @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 Link to comment Share on other sites More sharing options...
SunnyB Posted May 1, 2005 Share Posted May 1, 2005 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now