Does Busybox contain a lightweight hostname lookup applet?

I looked, and could not find one.

The "host" command would fit the bill, I think.  I feed it the
hostname that needs to be resolved, and some DNS server IP addresses
to use, and it performs the DNS protocol, returning the IP address(es)
of the hostname.

Alternatives to "host" are "nslookup" and "getent".  It seems that
"nslookup" is too closely tied to BIND, and "getent" is too closely
tied to glibc.

Ideally, I could use this hostname lookup applet to look up hostnames
and convert them to IP addresses, without needing to install a full
NSS library as needed by glibc.  That would save considerable space.

Then, it should be trivial to pass this to wget, so it can supply the
correct "Host:" HTTP header, when connecting to the IP address.

Does such a thing already exist?

Thanks!

Josh
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to