Saturday, March 5, 2011

How to get websites opening faster.

Yes, browsers have DNS caching, but it might not be configurable (it might get cleared after like... 60 seconds which's way too less) or it might cache websites/ip who's DNS has changed or it might store limited no. of sites etc...

/etc/hosts is a file where you can specify to your OS network which names to resolve to which IP in the following format -


e.g -

This will give you good latency losses.


  1. Yes, quite so, but doing this for all your favorite websites seems quite a bit of work. Now somebody needs to create a script to go through your firefox bookmarks, then it could be useful.

  2. You can use djbdns for DNS caching... I don't know how to get it working though.