Olivier Galibert writes:
On Wed, Apr 28, 1999 at 02:36:39PM +0200, Jan Vroonhof wrote:
> adns is a resolver library for C (and C++) programs. In contrast
> with the existing interfaces, gethostbyname et al and libresolv, it
> has the following features:
And the usual misfeature : a _lot_ of products (nis implementations,
proxies, etc...) change the resolv library, and there is no guarantee
that the computer can communicate with any dns at all, nor that the
dns would provide the right answers.
We could use a subprocess, as Netscape does, and let it do the
DNS queries. We could then do a non-blocking read of a socket
connected to the child process and have our interruptible DNS
lookups.