[Unbound-users] performing dns lookups inside python module?
Tom Hendrikx
tom at whyscream.net
Mon Oct 29 15:24:38 UTC 2012
On 10/29/12 3:35 PM, Paul Wouters wrote:
>
> Hi,
>
> I would like to use the python module to do some processing of queries.
> But the trick is, I will need to do some lookups before releasing the
> query I'm processing. Is that possible at all?
>
> The examples listed on the unbound.net site don't seem to do this kind
> of trickery...
You need multiple threads in unbound to do the extra lookups: the
original lookup that triggered your python module occupies thread0 until
you return a result.
A pristine config (with threads=1) will create a deadlock when you do a
dns lookup from the module. Ran into this last year :)
--
Tom
More information about the Unbound-users
mailing list