[PATCH] new applet gethostbyname
Eial Czerwacki
eial at scalemp.com
Sun Jul 8 09:01:19 UTC 2012
Harald,
On 07/08/2012 09:24 AM, ralda at gmx.de wrote:
> Thats what we are talking about !
>
> On one hand, simple IP lookup using libc function (gethostbyname), on
> the other hand, full DNS query (like host command).
I thought we've finished the getent vs host discussion.
> dnsip is an example of a full DNS query program like the host command
> from bind. My explanation decision was more general, not specific to an
> implementation.
doesn't getaddrinfo provides that?
> ping ? Does ping use/need a full dns query? As far as I know does ping
> only use simple ip lookup, and then send out network packages to those
> addresses (ICMP or UDP)
when enabling fancy output in ping, one can see the ip of the pinged
machine.
> The complaining was due to using the name 'host' for an applet which
> just does simple IP lookup, as that name is the name of a full DNS
> query command ... and mixing those would confuse others.
but we closed that issue.
> Currently there is none in Busybox (without parsing of output).
that is why I've wrote the applet in the first place.
> I'm using a slightly patched version of ipcalc applet to do the job of
> gethostbyname :-) ... have posted a patch for this about two years
> ago, but it has not bean accepted.
I see.
> Please post example of different output, including version of Busybox
> of the two systems. Let as see why output is different.
>
system 1:
nslookup skynet
Server: 10.200.10.20
Address: 10.200.10.20#53
Name: skynet
Address: 10.200.10.20
system 2:
nslookup skynet
Server: 10.200.10.20
Address 1: 10.200.10.20 skynet
Name: skynet
Address 1: 10.200.10.20 skynet
> It was just an idea of a way we could go, in case you want a full DNS
> query (not only simple IP lookup).
we need a decision on this.
Eial.
More information about the busybox
mailing list