Just stop using glibc, Josh! Compile and link BB (I prefer to use statically compiled binary, it's less than "half a metre" :) === 0.5Mb) against uClibc and you will get a neat _lightweight_ tool that you can successfully use anywhere.
Stop using glibc and you'll get rid of all those weird stuff (NSS and friends) that nobody knows the origin and/or purpose nowdays... Regards, -- Vladimir 2008/3/11, walter harms <[EMAIL PROTECTED]>: > > > JoSH Lehan wrote: > > 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. > > what is getent ? do you mean the getent-function-family ? that is not > glibc specific. neither is nslookup Bind specific. > > > > > > 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. > > > > the NSS libs are part of the glibc suite. if you choose glibc you choose NSS > also. > If you do not like nss use ulibc,newlib what ever you like. > > > 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. > > > > i am lost now, perhaps this is a naming convention problem: > "applet" is something you can call inside busybox like .\busybox echo "foo" > "xgetaddrinfo" is a convenience function inside busybox and only busybox > that is (possible) used by wget to resolve names. > > > Does such a thing already exist? > > > > it seems no one is missing it, can you please give a situation where such a > function maybe useful ? > > re, > wh > _______________________________________________ > busybox mailing list > [email protected] > http://busybox.net/cgi-bin/mailman/listinfo/busybox > _______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
