Quote: Originally Posted by Injust
I was wondering, is there any internet performance gain if you put a commonly used website's IP (like Google) in your Hosts file, so it doesn't need to ask a DNS server? I mean, because I have 30 websites I go on at least 10 times each day, and it lags when I open all of them
You can put any sites you want in your Hosts file, but I'm not sure how much performance benefit there would be.
Quote: Originally Posted by Bare Foot Kid
Perhaps I'm not understanding your question, the Hosts File blocks web-sites.
IIRC, before DNS servers you had to put sites in your Hosts file (for name resolution).
You can use it to:
- Replace a DNS request
- Block a website.
The entries don't even have to be "real" sites.
In my networking course, we had to add a "fake" site the Hosts file, because the TAFE campus doesn't allow students to modify their DNS server.
The "fake" site was a dummy website that we had created on a virtual server.
Quote: Originally Posted by logicearth
Windows already caches DNS records when you use them. So no adding them to the hosts file will not help any.
Open a Command Prompt and type "ipconfig /displaydns" that will show you all the entries that are cached.
It would stop the first DNS request being sent though (i.e. they won't be forgotten when you shutdown).