performance impact of large /etc/hosts files

Erich Dollansky oceanare at pacific.net.sg
Tue Dec 11 07:28:40 PST 2007


Hi,

Nikos Vassiliadis wrote:
> On Tuesday 11 December 2007 05:18:40 Erich Dollansky wrote:
>>
>> I use hosts for filtering all unwanted content on my personal machine.
> 
> That's not apparent. What are your filtering?

all the sites I personally do not want to see.

> and how do your filter using /etc/hosts?

127.0.0.1 BadHost.com
> 
> I recall that before DNS(that's a long time ago) the mapping

Yes, this was normal, a long time ago.

> The only "filtering" I can imagine of, is using something like
> 127.0.0.1 badhosts.com

Yes.

> But all you get is misinforming *your* resolver that

Yes, this is what I want. Just the machine I am working on. No other 
machine should get any impact from this.

> badhosts.com is on 127.0.0.1, that is, *you* cannot
> connect to badhosts.com.

Yes, this is what I want.

> badhosts.com can connect to your machine just fine.

Yes, if they would come through to it.

> And I doubt that's what you want.

This is really what I want. Just avoiding the traffic, the time and the 
optical disturbance caused by all those sites.

I would even prefer a method as simple as hosts but linked even to my 
user account.

Erich


More information about the freebsd-questions mailing list