Local dns cache with dnsmasq

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

Advertisements

Published by

paragasu

Different. In a good way

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s