FlyerTalk Forums - View Single Post - Question on using the hosts file
View Single Post
Old Feb 27, 2015, 10:32 am
  #1  
BigLar
FlyerTalk Evangelist
 
Join Date: Nov 2002
Location: Freeload Univ. Where are you sitting?
Posts: 14,818
Question on using the hosts file

Just resurrected an older laptop and testing it out. I noticed that one particular site was downloading a bunch of ad-related stuff, and I thought, "Of course! I never put in the hosts file."

I couldn't find the one I had been using (~650K) so I googled around and found one from Malwarebytes. I figured these guys ought to know what they're doing, so I downloaded it and installed it. 30 megs. Are you kidding?

Anyhow, I picked an entry at random (let's call it www.dumbsite.com) and put that address in the browser. What I expected to happen was nothing - it would find the entry in the hosts file, try to connect to myself (127.0.0.1) and that would be it. Instead, it went to the site.

So ... I'm probably misunderstanding how this stuff works (nothing new here, folks).

1. Does it matter which browser I use (IE, Chrome, Opera)?

2. Is that how it really works? It first checks the hosts file, then the internal dns cache and then sends out to the ISP's DNS server. If not, what's going on here?
BigLar is offline