Commit 672893c2 authored by Bob Halley's avatar Bob Halley
Browse files

If the client used TCP, tell the resolver to do so as well.

parent 3d3a9152
......@@ -1617,6 +1617,7 @@ query_recurse(ns_client_t *client, dns_rdatatype_t qtype, dns_name_t *qdomain,
isc_result_t result;
dns_rdataset_t *rdataset, *sigrdataset;
unsigned int options = 0;
* Invoke the resolver.
......@@ -1634,11 +1635,15 @@ query_recurse(ns_client_t *client, dns_rdatatype_t qtype, dns_name_t *qdomain,
return (ISC_R_NOMEMORY);
if ((client->attributes & NS_CLIENTATTR_TCP) != 0)
options |= DNS_FETCHOPT_TCP;
result = dns_resolver_createfetch(client->view->resolver,
qtype, qdomain, nameservers,
NULL, 0, client->task, query_resume,
client, rdataset, sigrdataset,
NULL, options, client->task,
query_resume, client,
rdataset, sigrdataset,
if (result == ISC_R_SUCCESS) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment