Compare commits

...

4 Commits

Author SHA1 Message Date
Mark Andrews
b64048e1a6 include <dns/rdataclass.h> 2003-09-22 00:35:12 +00:00
Mark Andrews
d808f7478b 9.1.3-P3 2003-09-22 00:15:00 +00:00
Mark Andrews
462d364ac8 1512. [bug] Extend the delegation-only logging to return query
type, class and responding nameserver.
2003-09-22 00:13:04 +00:00
Mark Andrews
5325708ff6 1511. [bug] delegation-only was generating false positives
on negative answers from subzones.
2003-09-22 00:06:58 +00:00
4 changed files with 29 additions and 6 deletions

View File

@@ -1,4 +1,12 @@
--- 9.1.3-P3 released ---
1512. [bug] Extend the delegation-only logging to return query
type, class and responding nameserver.
1511. [bug] delegation-only was generating false positives
on negative answers from subzones.
--- 9.1.3-P2 released ---
1509. [bug] Hint zones should accept delegation-only. Forward

4
README
View File

@@ -45,6 +45,10 @@ BIND 9
BIND 9.1.3-P3
Fix a false positive with delegation-only.
BIND 9.1.3-P2
Fix problems identified with delegation-only.

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: resolver.c,v 1.187.2.10.6.3 2003/09/19 07:06:45 marka Exp $ */
/* $Id: resolver.c,v 1.187.2.10.6.6 2003/09/22 00:35:12 marka Exp $ */
#include <config.h>
@@ -35,6 +35,7 @@
#include <dns/ncache.h>
#include <dns/peer.h>
#include <dns/rdata.h>
#include <dns/rdataclass.h>
#include <dns/rdatalist.h>
#include <dns/rdataset.h>
#include <dns/rdatastruct.h>
@@ -348,7 +349,8 @@ fix_mustbedelegationornxdomain(dns_message_t *message, fetchctx_t *fctx) {
if (type == dns_rdatatype_soa &&
dns_name_equal(name, domain))
keep_auth = ISC_TRUE;
if (type != dns_rdatatype_ns)
if (type != dns_rdatatype_ns &&
type != dns_rdatatype_soa)
continue;
if (dns_name_equal(name, domain))
goto munge;
@@ -4309,14 +4311,23 @@ resquery_response(isc_task_t *task, isc_event_t *event) {
fix_mustbedelegationornxdomain(message, fctx)) {
char namebuf[DNS_NAME_FORMATSIZE];
char domainbuf[DNS_NAME_FORMATSIZE];
char addrbuf[ISC_SOCKADDR_FORMATSIZE];
char classbuf[64];
char typebuf[64];
dns_name_format(&fctx->name, namebuf, sizeof(namebuf));
dns_name_format(&fctx->domain, domainbuf, sizeof(domainbuf));
dns_rdatatype_format(fctx->type, typebuf, sizeof(typebuf));
dns_rdataclass_format(fctx->res->rdclass, classbuf,
sizeof(classbuf));
isc_sockaddr_format(&query->addrinfo->sockaddr, addrbuf,
sizeof(addrbuf));
isc_log_write(dns_lctx, DNS_LOGCATEGORY_DELEGATION_ONLY,
DNS_LOGMODULE_RESOLVER, ISC_LOG_NOTICE,
"enforced delegation-only for '%s' (%s)",
domainbuf, namebuf);
"enforced delegation-only for '%s' (%s/%s/%s) "
"from %s",
domainbuf, namebuf, typebuf, classbuf, addrbuf);
}
/*

View File

@@ -1,4 +1,4 @@
# $Id: version,v 1.18.4.19.6.2 2003/09/19 07:09:02 marka Exp $
# $Id: version,v 1.18.4.19.6.3 2003/09/22 00:15:00 marka Exp $
#
# This file must follow /bin/sh rules. It is imported directly via
# configure.
@@ -7,4 +7,4 @@ MAJORVER=9
MINORVER=1
PATCHVER=3
RELEASETYPE=-P
RELEASEVER=2
RELEASEVER=3