> Another option, if you are comfortable using
> multiple processes or threads, is to perform the
> reverse DNS lookups in a separate process or thread.

There used to be a snippet for multi-threaded DNS floating around.. I
believe Edwin wrote it?  But I can't seem to find it now.
My code is here:  http://www.divineblood.org/snippets/dnslookup.c
It's nothing special.

Polling the output of a thread in the existing multiplexer shouldn't be
too difficult either.

Also, there are quite a few asynchronous DNS libraries floating around.
I haven't used any of them, and I don't think any come installed with
normal Linux/BSD flavors.  But it might be worth checking out.

--Palrich.

-- 

Reply via email to