You are not logged in.

#1 2008-07-28 10:46:43

lardon
Member
Registered: 2008-05-31
Posts: 264
Website

DNS cache on Arch?

Some time ago I used to use dnsmasq to cache frequent dns queries, following loosely the instructions of this guide:

http://ubuntu.wordpress.com/2006/08/02/ … -browsing/

Since it's been some time and I've moved to arch since then, I wonder if this is still the way to go and if fellow archers have implemented similar solution?


Autojump, the fastest way to navigate your filesystem from the command line!

Offline

#2 2008-07-28 11:06:34

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: DNS cache on Arch?

Yeah. I'm using dnsmasq on my router to cache queries, but it'd also work locally.

Offline

#3 2008-07-28 15:05:44

lardon
Member
Registered: 2008-05-31
Posts: 264
Website

Re: DNS cache on Arch?

Thanks, I decided to go with dnsmasq.

I had to create this little script (/etc/NetworkManager/dispatcher.d/dnsmasq) to make it work automatically with network-manager:

/bin/sh 
mv /etc/resolv.conf /tmp 
echo "nameserver 127.0.0.1" >> /etc/resolv.conf 
cat /tmp/resolv.conf >> /etc/resolv.conf 
rm /tmp/resolv.conf

Works like a charm.


Autojump, the fastest way to navigate your filesystem from the command line!

Offline

Board footer

Powered by FluxBB