[Toybox] [PATCH] Adding a minimal nslookup frontend to host.c

Rob Landley rob at landley.net
Mon Jun 6 10:54:50 PDT 2022


On 6/6/22 11:55, Moritz C. Weber wrote:
> ---
>  toys/net/host.c | 98 +++++++++++++++++++++++++++++++------------------
>  1 file changed, 63 insertions(+), 35 deletions(-)
> 
> diff --git a/toys/net/host.c b/toys/net/host.c
> index 20331678..933f4fb7 100644
> --- a/toys/net/host.c
> +++ b/toys/net/host.c
> @@ -7,6 +7,7 @@
>   * See https://www.ietf.org/rfc/rfc3596.txt
>  
>  USE_HOST(NEWTOY(host, "<1>2avt:", TOYFLAG_USR|TOYFLAG_BIN))
> +USE_NSLOOKUP(NEWTOY(nslookup, "<1>2", TOYFLAG_USR|TOYFLAG_BIN))

The one I usually use is "dig".

Isn't 80% of nslookup the interactive mode? (You can't even specify a different
port without the interactive commands. Which you can specify on the command line
too but it's the same command set...)

Rob



More information about the Toybox mailing list