Page 2 of 2

Re: DNS Resolution Problem

Posted: 2007/06/07 21:57:35
by michaelnel
sb3:/usr/bin# ldd nslookup
libdns.so.16 => /usr/lib/libdns.so.16 (0x00b4e000)
libisc.so.7 => /usr/lib/libisc.so.7 (0x00111000)
libcrypto.so.4 => /lib/libcrypto.so.4 (0x00148000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00d79000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00231000)
libc.so.6 => /lib/tls/libc.so.6 (0x00289000)
libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00c5d000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00dad000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0x00243000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x004c5000)
libresolv.so.2 => /lib/libresolv.so.2 (0x00246000)
libdl.so.2 => /lib/libdl.so.2 (0x00259000)
libz.so.1 => /usr/lib/libz.so.1 (0x0025d000)
/lib/ld-linux.so.2 (0x004ef000)

sb3:/usr/bin# ldd /bin/ping
libresolv.so.2 => /lib/libresolv.so.2 (0x00593000)
libc.so.6 => /lib/tls/libc.so.6 (0x00233000)
/lib/ld-linux.so.2 (0x00601000)

Note that they both use libresolv, but nslookup also uses libdns.

Can /usr/bin/host resolve on your machine? It seems to use the same libs as nslookup.

Re: DNS Resolution Problem

Posted: 2007/06/08 09:50:35
by nikko_bosatsu
@ michaelnel
Hi michael, I use strace, for nslookup, ping, and host. I think the problem because "/lib/tls/i686/libnss_dns.so.2" missing :-(. After I googling apparently that file is part of glibc. :-(.

Thanks All for the help,