[PATCH] new applet gethostbyname

ralda at gmx.de ralda at gmx.de
Sun Jul 8 11:32:08 UTC 2012


Hi Eial !

> nslookup is not a valid option currently.
> I cannot take in account all possible outputs.

You shall not consider different outputs, you shall fix the bug here
(or at least help to fix). It is not correct that you receive different
output format. With correct output nslookup shall give the information
you requested. You only need to pick the info from output. So there is
an applet that contains the code to query the information you want.
Adding an option to to nslookup to change output format for easy
scripting shall definitely be considered.

So go two steps:

1. Fix problem of different output of nslookup

2. Add option (e.g. -s) to nslookup applet to produce a simpler output
format for easy script usage

I think there will be many users who agree with this and will vote to
add this option to Busybox main line (or at least do not complain).

Harald


More information about the busybox mailing list