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 -

204.187.15.12   forums.gentoo.org
208.80.152.2    en.wikipedia.org
209.85.231.104  www.google.com
209.85.231.104  www.google.co.in

This will give you good latency losses.

2 comments:

  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.

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

    ReplyDelete