On Tue, Oct 26, 2004 at 02:11:18PM +0200,
Jose Marcio Martins da Cruz wrote
a message of 37 lines which said:

> As it's a multithreaded application, I can't use res_query and
> similar functions, but res_nquery...

The excellent mtr program (http://www.bitwizard.nl/mtr/) uses res_init
and res_mkquery and it handles asynchronicity itself with FD_ISSET on
the socket.