[BusyBox] Problem with networking and busybox
Alan Chandler
alan at chandlerfamily.org.uk
Tue Dec 4 13:55:32 UTC 2001
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I am trying to make myself a single floppy boot disk so that I can access a
windows only machine and make a a disk image of the main partition, bzip2 it,
and send it across the network (with probably rsync?) to a server for storage
on a CD-R (for later disaster recovery).
I have got a basic floppy disk working with a combination of Linux 2.4.16,
libc6.so and ld-linux.so, bzip2, rsync and busybox (built from source - using
ash shell - hard links for all the compiled in names built using the
busybox.links file and a script based on the install.sh) acting as everything
else. I have no /etc/inittab.
Lilo starts, and loads the kernel which boots, and loads a gzipped minix root
fs into ram and mounts devfs (note I am using the devfs option of the kernel
rather than manually creating the /dev/* files) automatically on /dev.
Busybox is compiled with the devfs option defined.
/etc/init.d/rcS gets run and the busybox ifconfig and route combination set
up networking (both lo and eth0). I also call hostname -F /etc/hostname. I
can get into a console and manually enter commands - and using this facility
I can ping other machines on my lan (using busybox minimal ping) by using
their IP address.
What I am struggling with is any name resolution. I have copied from my
working fully debian system /etc/{host.conf hostname hosts networks
protocols resolv.conf services} and made minor tweaks to recognise the
naming that I want to give the floppy host.
My local network (10.0.10.0/24) has a dns server at 10.0.10.100 and I am
attempting to use that. I use and internal domain name of .home for all
machines. So the contents of these key files are (not bothered with protocol
or services - these are standard)
/etc/host.conf
order hosts,bind
multi on
/etc/hostname
piglet.home
/etc/hosts
127.0.0.1 localhost
10.0.10.20 piglet.home piglet
/etc/networks
localhost 127.0.0.0
localnet 10.0.10.0
/etc/resolv.conf
search home
nameserver 10.0.10.100
ANY attempt to use nslookup (again busybox version) seems to fail with
"***unknown host***" (I may have the number of * wrong), even piglet or
piglet.home which should be looked up in the /etc/hosts file)
What am I doing wrong? - I can't see what I need to do differently than on my
full system to get networking to work
TIA
- --
Alan - alan at chandlerfamily.org.uk
http://www.chandlerfamily.org.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8DTg+1mf3M5ZDr2kRAiXZAKCMXGgUZvjhz6PL11a0RUP7rhhQ0ACcDV1r
rjQ7QGvTbnCkYSJwxZRjXL8=
=KroY
-----END PGP SIGNATURE-----
More information about the busybox
mailing list