On 2026-09-22 14:27:03 +0200, [email protected] wrote:
> On Tue, Sep 22, 2026 at 11:31:59AM +0200, Vincent Lefevre wrote:
>
> [...]
>
> > This does not say how nscd uses nsswitch.conf (/etc/nsswitch.conf
> > contains "hosts: files dns", so "dns" applies, but this does not say
> > how name resolving is done). The nscd developers should document that
> > first.
>
> It does and they do.
I was asking *how*, e.g. what happens in case of partial failure.
> Quoting from man (8) nscd:
>
> FILES
> /etc/nscd.conf
> Nscd configuration file. See nscd.conf(5) for more
> information.
Nscd does not behave as documented, or its documentation is
incomplete. For instance:
negative-time-to-live service secs
If an entry is not found by the Name Service, [...]
but what is an entry when dealing with both IPv4 and IPv6?
> /etc/nsswitch.conf
> Name Service Switch configuration. See nsswitch.conf(5)
> for more information.
>
> (my guess is that nscd uses more or less libc's plain old non-caching
> resolver, but caches things along their way).
This does not say how partial failures are handled (e.g. SERVFAIL
for an A query and an IPv6 address for an AAAA query).
--
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)