nscd and DNS cache
JD
jd1008 at gmail.com
Fri May 18 04:19:33 UTC 2012
On Thu, May 17, 2012 at 8:59 PM, Gordon Messmer <yinyang at eburg.com> wrote:
> On 05/15/2012 07:11 PM, JD wrote:
>>
>> I have nscd running.
>> /etc/resolv.conf starts out with
>> nameserver 127.0.0.1
>
>
> If you're actually running a local caching name server (bind or dnsmasq),
> you don't need nscd. Running both is overkill. You're going to waste
> memory by having everything cached in two different places.
>
> You can't test nscd with nslookup, dig, or host. All of those are DNS
> tools. They'll use the contents of resolv.conf, but they do not use the
> libc host lookup functions, and therefore they will not use nscd. If you
> want to test nscd, you should use "getent host".
>
That's excellent info. contradicts what other people have replied.
More information about the users
mailing list