Does lightweight hostname lookup applet exist in BB?

Ralf Friedl Ralf.Friedl at online.de
Tue Mar 11 22:14:16 UTC 2008


JoSH Lehan wrote:
> Use "host" (or other command) to do a DNS query and resolve the
> hostname to an IP address.
> Feed that IP address to wget.
> Give the true hostname to wget as well, so that it can fill in the
> correct "Host:" header when doing the HTTP query.
> This lets you grab a URL without needing to install all the full NSS
> infrastructure on your local filesystem.
Why not just pass the hostname to wget? wget will resolve the hostname 
and use it in the HTTP header.

Regards
Ralf Friedl



More information about the busybox mailing list