More on nscd problem

Martin v. Loewis martin@mira.isdn.cs.tu-berlin.de
Thu Apr 1 00:00:00 GMT 1999


Last year, I reported a problem with nscd and got a friendly response
that I should go to hell or debug the problem. So I debugged the
problem.

I'm trying to resolve the name 'ftp', when my /etc/resolv.conf reads
search informatik.hu-berlin.de 
nameserver 141.20.20.52

Without nscd, it resolves. With nscd, I get an error. I tracked this
down nscd calling __gethostbyname2_r, which returns with a NULL result
pointer, even though the lookup was successful.

Inside __gethostbyname2_r, it calls all the lookup functions. When it
comes to DNS, the call

      status = _CALL_DL_FCT (fct, (ADD_VARIABLES, resbuf, buffer, buflen,
				   &errno H_ERRNO_VAR));

will return NSS_STATUS_TRYAGAIN. errno at that time is 90, which
translates to EMSGSIZE on my system. gethostbyname will consider the
operation failed, and set *result to NULL.

If you need further information, please let me know.

Regards,
Martin



More information about the Libc-alpha mailing list