Open Source Support Tools
 
Search Item
 
Summary
  Reported Issue
Title: [[Fedora] Fedora-462394] nscd ignores configured caching time
Project: apache2
Item Last Modified: Tue, 16 Sep 2008 02:10:05
Tags:  
 
 
Bug alias apache apache-examples apache2 app attached autoindex breaks cache child clamav completely conf ctype cups dav dav_lock dbd deflate dir documentation effect env expires file filter found ftp gif glibc glibc-2.6 google google-cli graceful headers hooks href httpd ident imap info init javascript json kde lang ldap mime mmap multi mysql negotiation null offer pam patches perl php problem processes proxy proxy_balancer r1 r2 restart rewrite route running samba session setenvif soap sockets solution sort speling ssl start stats status stopped stuff suexec this threads timeout tokenizer transcode type1 unicode userdir usertrack x86 xml
Details
[[Fedora] Fedora-462394] nscd ignores configured caching time
Reporter:   Pete Zaitcev zaitcev
Created:   Mon, 15 Sep 2008 14:32:00
Updated:   Tue, 16 Sep 2008 02:10:05
Key:   462394
Versions:   Not provided
Environment:   x86_64
Priority:   3
Status:   Opened
Resolution:   Not provided
Original Link:   https://bugzilla.redhat.com/show_bug.cgi?id=462394
Summary:   nscd ignores configured caching time
Description:
Description of problem:

The nscd only caches for a few minutes, although /etc/nscd.conf says
positive-time-to-live hosts 3600

Version-Release number of selected component (if applicable):

nscd-2.8.90-12.x86_64

How reproducible:


Steps to Reproduce:
1. run tcpdump -n in the background
2. run date(1) to timestamp
3. run "host ipv6.google.com"
4. check output of step 1, it has DNS requiest for AAAA ipv6.google.com
5. re-run steps 1-3, see that there is no DNS traffic -- this is good
6. wait 20 minutes
7. repeat steps 1-3
8. observe that there's DNS traffic again

Actual results:

Short lifetime of cache

Expected results:

Configured lifetime

Additional info:

Setting bug component to glibc because nscd has no its own component.

The replied TTL from Google is rather goofy, only 35s for AAAA:

ipv6.google.com. 6340 IN CNAME ipv6.l.google.com.
ipv6.l.google.com. 35 IN AAAA 2001:4860:0:2001::68

However, nscd caches for more than 35 seconds, so I think it obeys
wrong part of nscd.conf or something.

Created an attachment (id=316788) [details]
nscd.conf
Comments: