[BusyBox] Busybox DNS Resolver

Christian Schroeder christian.schroeder at imms.de
Wed Nov 7 06:36:54 UTC 2001


Hi all,

I want to use busybox for a minimal linux system, which consists 
of the kernel, the busybox binary itself, lilo and a few device files 
only. Busybox acts as init (/etc/inittab,/etc/init.d/rcS), there
are no other binaries included. I don't use shared libs an I don't use
the runtime linker. I do mount the proc fs. I don't use swap space.
I compiled busybox as a static stripped binary and ist works fine
on my minimal system but the dns resolver doesn't work.

First I tested the same binary under a normal linux system (trustix 1.5)
and found that the nslookup applet uses the information about the 
nameservers, contained in /etc/resolv.conf (I changed resolv.conf and
have saw the differences in the output of the nslookup applet).

./busybox nslookup somehost.somedomain
Name:    nameserver.mydomain
Address: xxx.xxx.xxx.xxx

Name:    somehost.somedomain
Address: xxx.xxx.xxx.xxx

On my minimal system I got with exactly the same static binary:
./busybox nslookup somehost.somedomain
*** Unknown host

*** Unknown host

./busybox ping somehost.somedomain
ping: somehost.somedomain: Resolver Error 0 (no error)

pinging ip addresses works fine, ifconfig and route show the correct
results. 

I copied /etc/resolv.conf from the standard linux system to my minimal 
system but didn't get any success. In the docs of busybox I found, that 
busybox doesn't call any NSS code and there is no need for /etc/nsswitch.conf
and the libnss_* libraries. 

I use busybox 0.60.1.
Did I forget something ???

Thanks
Christian

Dr.-Ing. Christian Schroeder
Institut fuer Mikroelektronik- und Mechatronik-Systeme
Langewiesener Strasse 22
98693 Ilmenau
Telefon: +49 3677 678315
Telefax: +49 3677 678337
Mobil:   +49 173 5789172
e-mail:  christian.schroeder at imms.de
www:     http://www.imms.de/~christi/cs.html
pgp:     finger christi at finger.imms.de

-------------------------------------------------
This mail sent through IMP: imp.imms.de





More information about the busybox mailing list