[PATCH] new applet gethostbyname

Eial Czerwacki eial at scalemp.com
Wed Jul 4 06:02:22 UTC 2012


Hello Harald,
> No !

> 
> In glibc gethostbyname (getaddrinfo is a different entry to same
> functionality) uses the nsswitch and usually checks the local
> addresses first (if not configured differently). Only the host command
> from bind ignores local addresses.
> 
> $ host NAME
> --> only query DNS for NAME
> 
> $ getent hosts NAME
> --> check /etc/hosts then queries DNS (if nsswitch not configured
> differently)
> 


in that case I think that keeping it the host format is the right thing
to do.

Eial.


More information about the busybox mailing list