Re: nscd and DNS cache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/16/2012 01:10 AM, Siddhesh Poyarekar wrote:
On 16 May 2012 07:41, JD<jd1008@xxxxxxxxx>  wrote:
I have nscd running.
/etc/resolv.conf starts out with
nameserver 127.0.0.1
nameserver 192.168.1.254


The 192.168.1.254 is the router, which has been a fast and reliable
resolver.

So, to test nscd caching behavior,
I browse (using FF) over to any website.
After some time, the address is resolved and the page comes up.
I kill the tab of the page, and open a new tab and aim the browser
at same url. Browser again says: looking up whatever....com and takes
several seconds to resolve it.

I thought that nscd is supposed to cache the translation from the
first lookup.

Am I to believe that the browser is NOT using /etc/resolv.conf?
If not, what is it using?
Or could it be that nscd is useless in this respect?
nscd should cache host lookups if it is configured correctly. Run nscd
-g to see caching statistics and see if they tally with your usage. If
all of them are misses then you need to run nscd in debug mode with
'nscd -d' to see why the caching is not working. Make sure you
increase the value of debug-level to get verbose messages.

An easy test is to use 'getent hosts<hostname>' and 'getent ahosts
<hostname>' and study the nscd logs to see if you get a cache miss
everytime.
When I have more time I might debug it.
Perhaps you have more time on your  hands?

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux