Mailinglist Archive: opensuse (1420 mails)

< Previous Next >
Re: [opensuse] optimizing resolv.conf
On 2014-01-04 22:05, John Andersen wrote:
On 1/4/2014 12:31 PM, Carlos E. R. wrote:
If I put the tcpdump on "lo" and repeat, with nscd running I see only one hit.
If I stop nscd I see one hit each time (but none on eth0). So
it appears that both nscd and dnsmasq are caching DNS queries...

Interesting!

So, the point now is to decide which is best to use. I want dnsmasq, because I
also use it for local machine names. So perhaps I should
disable nscd (for hosts). :-?

That is kind of what I was suspecting, you have dual caches.
Since nscd caches things beyond DNS, it probably doesn't hurt you, other than
taking up a bit more memory.
Local machine names can be cached if they are in /etc/hosts I suppose.


/etc/nscd.conf

enable-cache hosts no

and restart it. I try to ping suse.de, with tcpdump on eth0 active, and I see no entries, so dnsmasq is still caching it.

And dnsmasq as caches /etc/hosts :-)

Very interesting thread! Thanks.

--
Cheers,
Carlos E. R.
(from 13.1 x86_64 "Bottle" (Elessar))
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
This Thread
Follow Ups