This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
DNS Caching.
- From: Michael Closson <closson at cs dot ualberta dot ca>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 24 Mar 2006 09:55:46 -0700
- Subject: DNS Caching.
- Organization: University of Alberta
Hello,
Does glibc implement a DNS cache as illustrated here:
http://upload.wikimedia.org/wikipedia/commons/0/09/DNS_in_the_real_world.svg
I think the answer is no. I have used ethereal to monitor network
traffic and have observed that multiple gethostbyname() calls result in
multiple name server queries (one per call), even from authoritative
name servers where the TTL is a reasonable value (1 day).
Never-the-less, since DNS is so cacheable, it seems surprising to me
that is would not be a feature of glibc.
Thanks ahead!
Michael Closson