mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
respond with NXDOMAIN, not SERVFAIL, when no PTR record is
found in either ip6.int or ip6.arpa
This commit is contained in:
parent
7bd76551d4
commit
fd8125cac3
1 changed files with 13 additions and 1 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: query.c,v 1.172 2001/01/09 22:10:32 gson Exp $ */
|
||||
/* $Id: query.c,v 1.173 2001/01/09 23:48:44 gson Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -3781,6 +3781,18 @@ synth_rev_byaddrdone_int(isc_task_t *task, isc_event_t *event) {
|
|||
|
||||
if (bevent->result == ISC_R_SUCCESS) {
|
||||
synth_rev_respond(client, bevent);
|
||||
} else if (bevent->result == DNS_R_NCACHENXDOMAIN ||
|
||||
bevent->result == DNS_R_NCACHENXRRSET ||
|
||||
bevent->result == DNS_R_NXDOMAIN ||
|
||||
bevent->result == DNS_R_NXRRSET) {
|
||||
/*
|
||||
* We could give a NOERROR/NODATA response instead
|
||||
* in some cases, but since there may be any combination
|
||||
* of NXDOMAIN and NXRRSET results from the IP6.INT
|
||||
* and IP6.ARPA lookups, it could still be wrong with
|
||||
* respect to one or the other.
|
||||
*/
|
||||
synth_finish(client, DNS_R_NXDOMAIN);
|
||||
} else {
|
||||
synth_finish(client, bevent->result);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue