[ldns-users] Batch API and async

Willem Toorop willem at nlnetlabs.nl
Fri Jun 14 08:27:54 UTC 2013


Op 13-06-13 16:07, Vladimir Levijev schreef:
> Hi,

Hi Vladimir,

> Did I understand it correctly that ldns does not provide batch API? So
> that if I need to get results of 100 domain names I need to do 100
> function calls, i. e. I cannot pass an array of targets.

That is correct.

> Also, did I understand it correctly that library does not provide a
> way to do asynchronous calls? So that a ldns function call blocks a
> program execution until return from that function.

Ldns has rudimentary support for asynchonous calls with the
ldns_udp_bgsend and ldns_tcp_bgsend functions.

I suggest you have a look at libunbound
(http://unbound.net/documentation/libunbound.html) which has an
asynchronous interface to a full resolver.

Cheers,

-- Willem




More information about the ldns-users mailing list