[PATCH] new applet gethostbyname

ralda at gmx.de ralda at gmx.de
Sun Jul 8 16:09:16 UTC 2012


Hi Rich !

> On Sun, Jul 08, 2012 at 05:36:08PM +0200, ralda at gmx.de wrote:
> > Full ack! Are you able to provide a new getent applet (deleting the
> > current nslookup)? (Sorry currently can't do development work due to
> > personal/health restrictions).

> I question the benefit of deleting a utility that some people might be
> using, even if it's doing slightly the wrong thing.

Sorry, I expressed it wrong. so let me clarify: Change "delete the
current nslookup" to "making current nslookup a proposal for
removement / replacement", what was my intention.


> If anybody wants the "real" nslookup behavior, DNS is a pretty
> trivial protocol and it should be easy to add a correct applet at
> the same time instead of just removing the incorrect one.

As it seams to me that nslookup is a dieing command and it is more and
more replaced by the host command, we should create a host command
applet for Busybox in this case (IMO) ... or add dnsip?

... otherwise correct. Replacing wrong applet with correctly working
code is better then simply removing. I based my decision of removal
on the assumption that no one is willing to add a full DNS query
directly to Busybox (instead using e.g. dnsip - like mentioned by
Laurent).


> Parsing and treating resolv.conf properly is actually probably the
> bulk of the work; sending, receiving, and printing the DNS result is
> completely trivial.

Fine, looks a bit to me, as you are pointing up to create a full version
of a host command to Busybox ... pretty nice ;-)

Harald


More information about the busybox mailing list