[Unbound-users] Timeout and NS specification
wouter at nlnetlabs.nl
Wed Jun 19 11:25:40 UTC 2013
-----BEGIN PGP SIGNED MESSAGE-----
On 06/19/2013 01:00 PM, Vladimir Levijev wrote:
> On 17 June 2013 12:56, Vladimir Levijev
> <vladimir.levijev at gmail.com> wrote:
>> I have read through
>> and understood that there is basically no way I could specify a
>> timeout of the resolve operation? Say, I'd like to perform this
>> query using UDP, 3 attempts with 5 seconds timeout (15 seconds
>> max timeout).
>> Another question, can I specify that I need to make a TCP
>> Also I could not find a way to specify a particular nameserver
>> when doing a request, is unbound always using a local resolver
>> configuration (resolv.conf)? I basically need to specify an NS
>> for every request, e. g. I can not just have a list in
>> resolv.conf or something.
>> I am using an async call ub_resolve_async() .
>> Please, let me know if you know some other library that I should
>> be using.
> I have noticed that this list is active after all. :-) Good, maybe
> I just asked my questions in too complicated way. I'll try to keep
> it short and simple.
> 1). Is there a way I could specify the timeout and number of
> retries with a query? 2). Is there a way I could specify TCP/UDP to
> use when doing a query? 3). Is there a way I could specify a target
> nameserver with every query I make (without reading a file
> containing nameserver entries)?
No, no and no. Unbound picks the fastest server (or probes for
servers). It falls back to TCP when it receives a +TC flag.
Are you looking for libldns, where you can specify this?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
-----END PGP SIGNATURE-----
More information about the Unbound-users