tech-embed archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

shrunken userland



I have made a little progress on a more embeddable NetBSD userland.

Using ldns, <http://www.nlnetlabs.nl/ldns/>, I have replaced ISC BIND's
dig(1) and host(1) utilities.  I replaced dig with drill, a program
that is distributed with ldns.  I created a simplified host(1) command
by modifying the ldns-mx.c example in ldns.  The storage savings are
substantial:

# ls -l `which host`
-r-xr-xr-x  1 root  wheel  1257396 Sep  7 21:23 /usr/bin/host
# ls -l `which dig`
-r-xr-xr-x  1 root  wheel  1269464 Sep  7 21:23 /usr/bin/dig

# ls -l `which host`
-rwxr-xr-x  1 root  wheel  12084 Sep 21 15:57 /usr/bin/host
# ls -l `which drill`
-rwxr-xr-x  1 root  wheel  42120 Sep 21 00:37 /usr/bin/drill
# ls -l /usr/lib/libldns.so.1.2
-r--r--r--  1 root      wheel  482979 Sep 21 00:37 /usr/lib/libldns.so.1.2

You can browse the sources for my host(1) replacement here,
<http://svn.cuwireless.net/svn/cuw/trunk/src/host/>.  It does not
work alike to ISC's host(1), but it works for my purposes.

I still seek a small replacement for the ISC DHCP client and server.
udhcp looks promising, but there is not a NetBSD port, yet, and it is GPL.

Dave

-- 
David Young             OJC Technologies
dyoung%ojctech.com@localhost      Urbana, IL * (217) 278-3933 ext 24



Home | Main Index | Thread Index | Old Index