Hi Eial ! > so gethostbyname (or getaddrinfo as suggested by Baruch) doesn't > checks the local /etc/host first?
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) -- Harald _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
