Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
672893c2
Commit
672893c2
authored
Nov 16, 1999
by
Bob Halley
Browse files
If the client used TCP, tell the resolver to do so as well.
parent
3d3a9152
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/named/query.c
View file @
672893c2
...
...
@@ -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
,
client
->
query
.
qname
,
qtype
,
qdomain
,
nameservers
,
NULL
,
0
,
client
->
task
,
query_resume
,
client
,
rdataset
,
sigrdataset
,
NULL
,
options
,
client
->
task
,
query_resume
,
client
,
rdataset
,
sigrdataset
,
&
client
->
query
.
fetch
);
if
(
result
==
ISC_R_SUCCESS
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment