[Unbound-users] Timeout control

W.C.A. Wijngaards wouter at NLnetLabs.nl
Tue Nov 30 15:30:53 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Vitalie,

The timeouts depend on the exact roundtrip times as observed, and the
nameservers for the domain.  If you want to have a timeout in your
software in case the resolution takes a long time, perhaps you want to
use alarm(2) or another timeout mechanism (e.g. from libevent).

Such as, use select(2) on the ub_fd() with the timeout of your choice.
You can use ub_cancel() to tell libunbound that the result of this query
is no longer needed.

Best regards,
   Wouter

On 11/26/2010 03:48 PM, Vitalie Cherpec wrote:
> Example output:
> 
> [vitalie at silver ~]$ time unbound-host -4 www.example.com
> <http://www.example.com>
> Host www.example.com <http://www.example.com> not found: 2(SERVFAIL).
> Host www.example.com <http://www.example.com> not found: 2(SERVFAIL).
> Host www.example.com <http://www.example.com> not found: 2(SERVFAIL).
> 
> real    19m17.427s
> user    0m0.011s
> sys     0m0.011s
> 
> 
> On Fri, Nov 26, 2010 at 4:21 PM, Vitalie Cherpec <vitalie at penguin.ro
> <mailto:vitalie at penguin.ro>> wrote:
> 
>     Hi,
> 
>       I'm trying to use asynchronous interface from unbound
>     (ub_resolve_async) and I do have a problem.
>     When running DNS queries which receive no response from the
>     nameservers (lame delegation),
>     it locks the program and keeps trying forever (iterator module).
>     Same thing happens running query
>     with unbound-host command.
> 
>     I've studied the documentation, but I didn't find any information on
>     how should I
>     configure the timeouts. Do you have any clues ?
> 
> 
>     Regards,
>     Vitalie Cherpec
> 
> 
> 
> 
> 
> _______________________________________________
> Unbound-users mailing list
> Unbound-users at unbound.net
> http://unbound.nlnetlabs.nl/mailman/listinfo/unbound-users

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEUEARECAAYFAkz1GK0ACgkQkDLqNwOhpPhsmACXadp0UsO078iAWuKikv8S9Kqr
zACfTKmoV25tCuMJtElHWUJkzcTaN7E=
=KlZc
-----END PGP SIGNATURE-----



More information about the Unbound-users mailing list