This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nis/2429] New: host lookup not continued after nisplus
- From: "egmont at uhulinux dot hu" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 7 Mar 2006 19:17:20 -0000
- Subject: [Bug nis/2429] New: host lookup not continued after nisplus
- Reply-to: sourceware-bugzilla at sourceware dot org
I always had a
hosts: files nisplus nis dns
line in nsswitch.conf, though I never had any YP/NIS/NIS+ server around here
and the domainname is not set either. So far (through many versions of glibc,
including 2.3.6) it worked perfectly, glibc looked for the entries first in
/etc/hosts, then at the dns server.
After upgrading to 2.4, several applications (e.g. ftp, ping) still resolv
hostnames, though some others (rsync-2.6.6, wget-1.10.2) misbehave, they do
not query entries from the dns server. (I've recompiled these applications
against glibc-2.4 but nothing changed.)
If I remove the "nisplus" word from nsswitch, then they work again as expected.
However, the strace output shows that the nss_nis and nss_dns modules are not
even loaded after nss_nisplus. To make it more explicit, I changed this line to
hosts: files nisplus [SUCCESS=continue NOTFOUND=continue UNAVAIL=continue
TRYAGAIN=continue] nis dns
but still nisplus is the last module looked up for these applications (while
strangely for other ones the lookup continues with nis and dns). If I
understand the docs correctly, the lookup should continue, no matter what the
nisplus module answers.
I attach the logfile created with this command:
strace -o /tmp/rsync-strace.txt -s 80 rsync rsync://rsync.uhulinux.hu/
that shows that glibc doesn't try to load nss_nis and nss_dns. (The hosts
file now contains the long "hosts:" line with the four "continue" statements.)
PS.: nscd is not running, but nothing changes if I start it with host caching
enabled.
--
Summary: host lookup not continued after nisplus
Product: glibc
Version: 2.4
Status: NEW
Severity: normal
Priority: P2
Component: nis
AssignedTo: kukuk at suse dot de
ReportedBy: egmont at uhulinux dot hu
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: i586-uhu-linux
GCC host triplet: i586-uhu-linux
GCC target triplet: i586-uhu-linux
http://sourceware.org/bugzilla/show_bug.cgi?id=2429
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.