NSCD: host name not found(Internal)


o TeX o Ascii
o Deutsch

Support knowledgebase (sradmanic_nscd2)
Applies to

SuSE Linux: Version 6.2
This article refers to an older version of SuSE Linux. Therefore some of the informations given in this article may be outdated or the article may contain stale links.


SuSE-INTERN:

Symptom:

Long domain names return a ´host not found´, although the nameserver-entries were configured properly. This happens with all programs calling gethostbyname_r/gethostbyname2_r. Netscape does not show this behaviour, as long as it uses its own program code for the name server services.

Cause:

There is a bug in the library ´libnss_dns.so.2´, specifically a buffer-overflow, when the appropriate routine is called with extremely long strings (ie. computers with long names (and aliases) with many IP addresses). The "nscd" daemon (Name Service Cache Daemon) forces this error, whereby the error described often occurs.

Solution:

A quick fix is to edit the file ´/etc/nscd.conf´ and change the line ´enable-cache hosts´ from ´yes´ to ´no´ and start nscd again (/sbin/init.d/nscd restart). To remove the problem completely, it is necessary to install a fixed ´libnss_dns.so.2´ from our ftp-server.

Procedure:

There are two methods available:
  1. just download and update the whole shlibs package, obtainable from: ftp://ftp.suse.com/pub/suse/i386/update/6.2/a1/shlibs.rpm
  2. download and update only the buggy library ´libnss_dns.so.2´, available at ftp://ftp.suse.com/pub/suse/i386/update/6.2/a1/nss_dns.tar.gz
    and please don´t forget to read the installation comments ftp://ftp.suse.com/pub/suse/i386/update/6.2/a1/INSTALL.nss_dns

Keywords:

Categories: Applications , Network

SDB-sradmanic_nscd2, Copyright SuSE Linux AG, Nürnberg, Germany
Author: radmanic@suse.de - Version: 17. Aug 1999
SuSE Linux AG - Last generated: 02. Apr 2002 by radmanic (sdb_gen 1.40.0)