On 2026-09-22 15:39:04 +0200, Marco Moock wrote: > Am 22.09.26 um 14:30 schrieb [email protected]: > > (my guess is that nscd uses more or less libc's plain old non-caching > > resolver, but caches things along their way). > > Which one? > > For me it looks like nscd just caches the answers the libraries > listed in nsswitch.conf gave.
This is more complex. For instance, a getaddrinfo call with AF_INET gives the IPv4 address as expected, so that this IPv4 address should now be in the cache. But a getaddrinfo call with AF_UNSPEC, done just after, can miss this cached IPv4 address. Perhaps a documentation of what a cache entry consists of could explain this behavior, but there is none. https://sourceware.org/bugzilla/show_bug.cgi?id=34668 -- Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)

