local cache for faster internet browsing.


#apt-get install dnsmasq

in /etc/dnsmasq.conf

listen-address=127.0.0.1

in /etc/dhcp3/dhclient.conf

prepend domain-name-server 127.0.0.1;

in /etc/resolv.conf

nameserver 127.0.0.1

The last thing you need to do

#/etc/init.d/dnsmasq restart
#/etc/init.d/networking restart

Another interesting package that does the same thing is pdnsd. The best thing about pdnsd is, it saves the dns cache in disk which is still available even after you reboot.


More info on dnsmasq

pdnsd info
How to setup pdnsd