[BusyBox] bug#1182: [PATCH] - add explicit name serveroption to nslookup.c + minor other fix

David Douthitt ssrat at mailbag.com
Thu Jun 14 06:24:26 UTC 2001


Benjamin Zeckel wrote:

> > I would suggest that this is non-GNU behavior.
> 
> The version of nslookup I am familar with comes with the BIND source as
> does dig. It is therefore not GNU software.

Hrmph.  :P

> This behavior is standard behavior for the version of nslookup that comes
> with bind (man nslookup)

I did a man nslookup; it gave me this:

nslookup [ options ] [ hosttolookup | -[server] ]

This means that:

nslookup <host>
nslookup -
nslookup -<server>
nslookup

are all valid, BUT

nslookup <host> <server>

...is NOT.  However, it does work that way.  According to the man
page, either the host or server can be present but not both - and the
server requires a leading dash.

> >  To provide this sort of function (and more) I would prefer a new dig
> > applet.
> >Then you could:
> >
> >dig www.site.com @my.dns.server.net
> >
> >The original dig also is supposed to lookup up names in a much more
> >realistic manner compared to the traditional nslookup (though I'm not
> >sure why).  I would like support for (at least):
> >
> >dig <name>
> >dig <name> @<server>
> >dig -x <ip>
> >
> >Perhaps more as I look, but these are what I use most often....
> 
> This might be a good idea as well. perhaps another evening project.

I'm not going to beg... I'm not... I'm not... :-)





More information about the busybox mailing list