[Fwd: Re: Query regarding DNS client on BusyBox]
Ranga Raju B
brraju at hyd.hellosoft.com
Fri Apr 21 11:33:55 UTC 2006
Alexander Griesser wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Ranga Raju B wrote:
>
>
>>Next I was trying to make the nslookup work. The nslookup is working
>>fine in my host system and the nameservers are OK on the network. I was
>>unable to make the nslookup work on my target board. I copied the
>>resolv.conf into the etc directory. I used
>>
>># nslookup www.yahoo.com 192.168.2.3
>>
>>www.yahoo.com is the host machine and 192.168.2.3 is my nameserver in
>>the LAN. Can you please guide me to make the DNS client work in a
>>busybox system? Finally I should able to ping the www.yahoo.com on my
>>target board.
>>
>>
>
>You will need a bunch of libraries and files installed (copy them from
>your host system) for this to work:
>
>/etc/nsswitch.conf
>/lib/libnss_compat.so.2
>/lib/libnss_dns.so.2
>/lib/libnss_files.so.2
>
>I don't know, if there is anything else needed, I remember that I
>also tried to copy one file after the other and finally, it worked.
>Maybe one file is missing in the list up there.
>
>Just give it a try and if it still doesn't work.
>
>My installed nslookup (on my host system) also links against
>/usr/lib/libdns.so.21 and /usr/lib/libbind9.so.0), so check back
>with your nslookup version, which libraries are needed on your
>busybox system and copy them into the correct place.
>
>ciao,
>- --
>Alexander Griesser (Netzwerkadministration)
>E-Mail: alexander.griesser at lkh-vil.or.at | Web: http://www.lkh-vil.or.at
>KABEG LKH Villach | Nikolaigasse 43 | 9500 Villach
>Tel.: +43 4242 208 3061 | Fax.: +43 4242 971 3061
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.4.3 (GNU/Linux)
>Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
>iD8DBQFESG3m66HVD6KUm1oRAmHdAKChyKKTc9V07IIwXl91C9phJsg+1QCfQIKR
>LfWXQ9ym0wumEPub17IaMgc=
>=2UDD
>-----END PGP SIGNATURE-----
>_______________________________________________
>busybox mailing list
>busybox at busybox.net
>http://busybox.net/cgi-bin/mailman/listinfo/busybox
>
>
>
I copied the files you mentioned
The list of files in my lib directory are:
/etc # ls /lib/
ld-2.3.2.so libm.so libnss_dns.so
ld-linux.so.2 libm.so.6 libnss_dns.so.2
libc-2.3.2.so libnsl-2.3.2.so libnss_files-2.3.2.so
libc.so libnsl.so libnss_files.so
libc.so.6 libnsl.so.1 libnss_files.so.2
libcrypt-2.3.2.so libnss_compat-2.3.2.so libthread_db-1.0.so
libcrypt.so libnss_compat.so libthread_db.so
libcrypt.so.1 libnss_compat.so.2 libthread_db.so.1
libm-2.3.2.so libnss_dns-2.3.2.so
/etc #
The list of files in my /etc directory are:
/etc # ls /etc/
init.d inittab nsswitch.conf resolv.conf
/etc #
The dependencies of nslookup are
/etc # ldd /bin/nslookup
libcrypt.so.1 => /lib/libcrypt.so.1 (0x4001d000)
libc.so.6 => /lib/libc.so.6 (0x40051000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
/etc #
As you can see these are already present in my lib directory.
Now
/etc # ping www.yahoo.com
ping: www.yahoo.com: Resolver Error 0 (no error)
/etc #
And
/etc # nslookup www.yahoo.com 192.168.2.3
*** Unknown host
nslookup: www.yahoo.com: Resolver Error 0 (no error)
/etc #
Can you please tell me why I am getting this Resolver Error?
Regards
Ranga
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/busybox/attachments/20060421/e14a74d2/attachment-0001.htm
More information about the busybox
mailing list