Subject: Re: Are res_send and res_query thread-safe?
To: None <>
From: Christos Zoulas <>
List: tech-userlevel
Date: 04/03/2004 16:37:53
In article <>,
Emmanuel Dreyfus <> wrote:

On, I've left a tarball of a libc with bind9.

>Right. So there are no way of performing two DNS lookups at the same
>time from the same process?
>One solution is to serialize the lookups using locks, but that is not a
>very good option since a DNS lookup can take several seconds. 
>Do I get a fix by linking with BIND8 resolver? (or BIND9? Is BIND8
>resolver thread safe?) Is it possible? Won't that clash at link time
>with the resolver function available in libc?
>Emmanuel Dreyfus
>Il y a 10 sortes de personnes dans le monde: ceux qui comprennent 
>le binaire et ceux qui ne le comprennent pas.