Sirius Stuff

Sirius Stuff header image 2

Local DNS Cache for Faster Browsing using dnsmasq

June 26th, 2007 · 1 Comment

Looking for a way to speed up recurring DNS lookups on my Ubuntu box. I found a reference to Local DNS Cache for Faster Browsing on Ubuntu Blog. Works like a champ. I like that dnsmasq allows me to configure the size of the cache easily. I don’t like that I had to chattr +i /etc/resolv.conf to make it immutable so that the system wouldn’t drop looking at 127.0.0.1 (localhost) first. I tried using the package resolvconf but it caused all lookups to fail. So I used apt-get again to remove it and stayed with just the dnsmasq package.

Share and Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg
  • Fark
  • Furl
  • NewsVine
  • Reddit
  • Spurl
  • TailRank
  • YahooMyWeb

Tags: Ubuntu

1 response so far ↓

  • sam // Jul 2, 2007 at 9:09 am

    add the line
    prepend domain-name-servers 127.0.0.1;
    to
    /etc/dhcp3/dhclient.conf

    that will add localhost to your resolve.conf everytime you connect to the internet

Leave a Comment