[PATCH] new applet gethostbyname
Eial Czerwacki
eial at scalemp.com
Tue Jul 3 07:57:50 UTC 2012
Hello All,
I'd like to propose a new applet, gethostbyname.
all this applet does is to get a host name and return the first ip address.
the reason for this applet is that I have a embedded boot image build
with busybox what queries me on boot for a hostname and runs a bin which
tries to connect to it for data.
as the image is build based on uclibc and the bin is statically compiled
glibc, there are some functions which doesn't work, gethostbyname is one
of them.
previously I've used nslookup and parsed the output but I encountered
two networks the other day that have different output which probably
depends on the dhcp server config.
my only way to get around it with minimal effort is to create small
applet for busybox that does that for me.
I'm using busybox 1.19.2 so this is a bit old but if this package will
be accepted, I'll modify it to latest version.
Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox-add_gethostbyname_applet.patch
Type: text/x-patch
Size: 3089 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20120703/94176c22/attachment.bin>
More information about the busybox
mailing list