Kurt Wall wrote:

[...]

> glibc -- particularly, the resolver library and the NSS (Name Service
> Switch) facilities. Specifically, the file resolv/resolv.h defines
> the macro _PATH_RESCONF:
>
> #define _PATH_RESCONF   "/etc/resolv.conf"

Here's a question that came up in our study group.  Do name lookups (name to
IP mappings) get cached on a client machine (one without a nameserver)?  Arp
lookups (MAC to IP mappings) do, but what about DNS?

My answer was that they don't.  My reasoning was that name resolution is
handled by glibc, so it's running in user space, so the results aren't
available to other applications.  I guess you could say that an application
may cache the lookup, but if 2 applications use the same name there are 2
lookups done.

Naturally this is easy to answer empirically, but I don't have all the network
tools I'd like at the moment.

Thanks!

Dave


_______________________________________________
Linux-users mailing list
Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users

Reply via email to