From c53b15bd9a5a98abe08a018926536ea66c81318c Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Thu, 31 Mar 2016 07:49:40 -0300 Subject: [PATCH] target-fetch-policy only with unbound-event-api --- src/context.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/context.c b/src/context.c index df1bf8b7c..cc059f6fc 100644 --- a/src/context.c +++ b/src/context.c @@ -1562,8 +1562,10 @@ rebuild_ub_ctx(struct getdns_context* context) { if (!context->unbound_ctx) return GETDNS_RETURN_MEMORY_ERROR; +#ifdef HAVE_UNBOUND_EVENT_API ub_ctx_set_option(context->unbound_ctx, - "target-fetch-policy:", "1 1 1 0 0"); + "target-fetch-policy:", "0 0 0 0 0"); +#endif set_ub_dnssec_allowed_skew(context, context->dnssec_allowed_skew); set_ub_edns_maximum_udp_payload_size(context,