Hello Harald, > If there will ever be a change in host file format the libc will honor
> that change I ought. > > You do not need to add an extra parser for /etc/hosts. This parser is > part of the libc and usually there. And that is the difference: If you > want a simple interface to query an IP address you use the libc > function (like gethostbyname) and that is you get libc functionality > with first reading /etc/hosts and then querying the DNS server ... and > those to have the function of getent hosts, NOT the function of the > host command (which is a direct DNS query not using the libc functions). > > In simplest case just provide an empty /etc/hosts and use libc > functions to query the IP address ... this is the functionality of > 'getent hosts NAME'. To implement the correct function of 'host NAME' > you would otherwise need to send your own network queries to the DNS > server and wait for its responses (much more work to be done > duplicating code in libc). > is that still valid when it comes to uclibc? also, if it is part of libc and busybox is compiled against libc, wont that mean that the option is already built it? Eial. _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
