[ldns-users] ldns_resolver_retry
Henri Asseily
henri at asseily.com
Mon Apr 6 09:47:25 UTC 2009
Hi, the docs say for ldns_resolver_set_retry: "Set the resolver retry
interval (in seconds)."
But I think the code says that it's the number of retries, where
retrans is the retransmission interval.
Also, it's not really retries, it's tries (setting to retries to 0
would not make a query).
I'm trying to keep to a single nameserver, and do udp > edns0 udp >
tcp as quickly as necessary, then fail to another nameserver and do
that again.
Would that do the trick:
ldns_resolver_set_usevc(resolver, FALSE);
ldns_resolver_set_edns_udp_size(resolver, 4096);
ldns_resolver_set_fallback(resolver, TRUE);
ldns_resolver_set_fail(resolver, TRUE);
ldns_resolver_set_retry(resolver, 1);
ldns_resolver_set_retrans(resolver, 2);
Thanks much,
H
More information about the ldns-users
mailing list