Subject: Re: Are res_send and res_query thread-safe?
To: None <tech-userlevel@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-userlevel
Date: 04/03/2004 16:37:53
In article <1gbohau.yfvbbdkieyroM%manu@netbsd.org>,
Emmanuel Dreyfus <manu@netbsd.org> wrote:

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

christos
>
>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.
>manu@netbsd.org