This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nscd/4428] New: hosts caching does not respect TTL, and caches old IP's
- From: "madcoder at debian dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 25 Apr 2007 19:10:56 -0000
- Subject: [Bug nscd/4428] New: hosts caching does not respect TTL, and caches old IP's
- Reply-to: sourceware-bugzilla at sourceware dot org
I've tested that using a very short lived (TTL of 3 seconds) of a DNS A
record. nscd only respects positive-time-to-live from /etc/nscd.conf and not
DNS TTLS as it should.
It has very nasty side effects if the record in question is (e.g.) the IP of
the ldap server :)
To reproduce the problem, have a short lived A domain (e.g. 3 seconds) change
its IP. hosts $domain will answer the correct new IP after at most 3 seconds,
whereas getent hosts $domain will always return the old IP (until the
nscd.conf positive-time-to-live expires).
--
Summary: hosts caching does not respect TTL, and caches old IP's
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: nscd
AssignedTo: drepper at redhat dot com
ReportedBy: madcoder at debian dot org
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=4428
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.