Problems with NIS+ host lookup
Viktor Rosenfeld
viktor at mbi-berlin.de
Fri Jan 18 22:38:04 EST 2002
Hi there,
I'm using NIS+ (nisutils 1.3) on various Redhat boxen (6.2 through 7.2)
and I'm having a problem on RH 7.2 with looking up hosts based on their
NIS+ name.
E.g. if I have the following line in /etc/nsswitch.conf
hosts: files dns nisplus
I can't telnet/ssh to hosts using their short name:
[ipl] /users/z/viktor $ telnet mail
telnet: mail: System error
mail: Resolver internal error
[ipl] /users/z/viktor $ ssh mail
ssh: mail: System error
[ipl] /users/z/viktor $ ldd /usr/bin/telnet
libutil.so.1 => /lib/libutil.so.1 (0x4002c000)
libncurses.so.5 => /usr/lib/libncurses.so.5 (0x4002f000)
libc.so.6 => /lib/libc.so.6 (0x40070000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
[ipl] /users/z/viktor $ ldd /usr/bin/ssh
libpam.so.0 => /lib/libpam.so.0 (0x4002c000)
libdl.so.2 => /lib/libdl.so.2 (0x40034000)
libutil.so.1 => /lib/libutil.so.1 (0x40038000)
libz.so.1 => /usr/lib/libz.so.1 (0x4003b000)
libnsl.so.1 => /lib/libnsl.so.1 (0x40049000)
libcrypto.so.2 => /lib/libcrypto.so.2 (0x40061000)
libc.so.6 => /lib/libc.so.6 (0x40124000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
[ipl] /users/z/viktor $
Strangly enough, ping seems to work. On RH 7.1 (and maybe prior) ssh
also won't work with the above host line, although telnet does.
[anno] /users/z/viktor $ ssh mail
ssh: mail: System error
[anno] /users/z/viktor $ ldd /usr/bin/telnet
libutil.so.1 => /lib/libutil.so.1 (0x40026000)
libncurses.so.5 => /usr/lib/libncurses.so.5 (0x40029000)
libc.so.6 => /lib/libc.so.6 (0x4006b000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
[anno] /users/z/viktor $ ldd /usr/bin/ssh
libpam.so.0 => /lib/libpam.so.0 (0x40026000)
libdl.so.2 => /lib/libdl.so.2 (0x4002e000)
libutil.so.1 => /lib/libutil.so.1 (0x40032000)
libz.so.1 => /usr/lib/libz.so.1 (0x40035000)
libnsl.so.1 => /lib/libnsl.so.1 (0x40043000)
libcrypto.so.1 => /usr/lib/libcrypto.so.1 (0x4005a000)
libc.so.6 => /lib/libc.so.6 (0x40116000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
If I change the host line in /etc/nsswitch.conf to either one of
hosts: files dns [NOTFOUND=return] nisplus
hosts: files nisplus dns
Everything works as expected. However, as it turns out, NIS+ host name
lookup is completely borked:
[anno] /users/z/viktor $ uname
Linux
[anno] /users/z/viktor $ hostname
anno
[anno] /users/z/viktor $ domainname
mbi.de
[anno] /users/z/viktor $ ping anno.mbi.de
ping: unknown host anno.mbi.de
[anno] /users/z/viktor $
Contrast a SunOS machine:
[name] ~ $ uname
SunOS
[name] ~ $ ping anno.mbi.de
anno is alive
[name] ~ $
BTW, between RH 7.1 and RH 7.2, the glibc changed from 2.2.2 to 2.2.4.
Any ideas?
Cheers,
Viktor
--
Viktor Rosenfeld
Max-Born-Institut fuer Nichtlineare Optik und Kurzzeitspektroskopie
Max-Born-Strasse 2A, D-12489 Berlin, Germany
E-Mail: mailto:viktor at mbi-berlin.de
WWW: http://www.informatik.hu-berlin.de/
More information about the linux-nisplus
mailing list