Skip to content
GitLab
Menu
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
a2cc581a
Commit
a2cc581a
authored
Nov 04, 1999
by
Bob Halley
Browse files
enable processing of type 3 nodata/nxdomain
parent
888a65ed
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/dns/resolver.c
View file @
a2cc581a
...
...
@@ -1903,7 +1903,7 @@ noanswer_response(fetchctx_t *fctx, dns_name_t *oqname) {
return
(
ISC_R_SUCCESS
);
}
static
inline
isc_result_t
static
isc_result_t
answer_response
(
fetchctx_t
*
fctx
)
{
isc_result_t
result
;
dns_message_t
*
message
;
...
...
@@ -2364,7 +2364,9 @@ resquery_response(isc_task_t *task, isc_event_t *event) {
keep_trying
=
ISC_TRUE
;
goto
done
;
}
}
else
if
(
message
->
counts
[
DNS_SECTION_AUTHORITY
]
>
0
)
{
}
else
if
(
message
->
counts
[
DNS_SECTION_AUTHORITY
]
>
0
||
message
->
rcode
==
dns_rcode_noerror
||
message
->
rcode
==
dns_rcode_nxdomain
)
{
/*
* NXDOMAIN, NXRDATASET, or referral.
*/
...
...
@@ -2438,6 +2440,21 @@ resquery_response(isc_task_t *task, isc_event_t *event) {
if
(
keep_trying
)
{
if
(
result
==
DNS_R_FORMERR
)
broken_server
=
ISC_TRUE
;
if
(
broken_server
)
{
#ifdef notyet
result
=
dns_adb_marklame
(
dns_adb_t
*
adb
,
dns_adbaddrinfo_t
*
addr
,
dns_name_t
*
zone
,
isc_stdtime_t
expire_time
);
#else
result
=
ISC_R_SUCCESS
;
#endif
if
(
result
!=
ISC_R_SUCCESS
)
{
fctx_done
(
fctx
,
result
);
return
;
}
}
/*
* XXXRTH If we have a broken server at this point, we will
* decrease its 'goodness', possibly add a 'lame'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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