char *journalfile = NULL;
if (xfr->reqtype != dns_rdatatype_ixfr) {
- xfrin_log(xfr, ISC_LOG_ERROR,
+ xfrin_log(xfr, ISC_LOG_NOTICE,
"got incremental response to AXFR request");
return (DNS_R_FORMERR);
}
if (rdata->type == dns_rdatatype_none ||
dns_rdatatype_ismeta(rdata->type))
{
+ char buf[64];
+ dns_rdatatype_format(rdata->type, buf, sizeof(buf));
+ xfrin_log(xfr, ISC_LOG_NOTICE,
+ "Unexpected %s record in zone transfer", buf);
FAIL(DNS_R_FORMERR);
}
switch (xfr->state) {
case XFRST_SOAQUERY:
if (rdata->type != dns_rdatatype_soa) {
- xfrin_log(xfr, ISC_LOG_ERROR,
+ xfrin_log(xfr, ISC_LOG_NOTICE,
"non-SOA response to SOA query");
FAIL(DNS_R_FORMERR);
}
case XFRST_INITIALSOA:
if (rdata->type != dns_rdatatype_soa) {
- xfrin_log(xfr, ISC_LOG_ERROR,
+ xfrin_log(xfr, ISC_LOG_NOTICE,
"first RR in zone transfer must be SOA");
FAIL(DNS_R_FORMERR);
}
xfr->state = XFRST_IXFR_END;
break;
} else if (soa_serial != xfr->ixfr.current_serial) {
- xfrin_log(xfr, ISC_LOG_ERROR,
+ xfrin_log(xfr, ISC_LOG_NOTICE,
"IXFR out of sync: "
"expected serial %u, got %u",
xfr->ixfr.current_serial, soa_serial);
* allow for case differences.
*/
if (dns_rdata_compare(rdata, &xfr->firstsoa) != 0) {
- xfrin_log(xfr, ISC_LOG_ERROR,
+ xfrin_log(xfr, ISC_LOG_NOTICE,
"start and ending SOA records "
"mismatch");
FAIL(DNS_R_FORMERR);
* match the question that was sent.
*/
if (msg->counts[DNS_SECTION_QUESTION] > 1) {
- xfrin_log(xfr, ISC_LOG_DEBUG(3), "too many questions (%u)",
+ xfrin_log(xfr, ISC_LOG_NOTICE, "too many questions (%u)",
msg->counts[DNS_SECTION_QUESTION]);
result = DNS_R_FORMERR;
goto failure;
if ((xfr->state == XFRST_SOAQUERY || xfr->state == XFRST_INITIALSOA) &&
msg->counts[DNS_SECTION_QUESTION] != 1)
{
- xfrin_log(xfr, ISC_LOG_DEBUG(3), "missing question section");
+ xfrin_log(xfr, ISC_LOG_NOTICE, "missing question section");
result = DNS_R_FORMERR;
goto failure;
}
dns_message_currentname(msg, DNS_SECTION_QUESTION, &name);
if (!dns_name_equal(name, &xfr->name)) {
result = DNS_R_FORMERR;
- xfrin_log(xfr, ISC_LOG_DEBUG(3),
+ xfrin_log(xfr, ISC_LOG_NOTICE,
"question name mismatch");
goto failure;
}
INSIST(rds != NULL);
if (rds->type != xfr->reqtype) {
result = DNS_R_FORMERR;
- xfrin_log(xfr, ISC_LOG_DEBUG(3),
+ xfrin_log(xfr, ISC_LOG_NOTICE,
"question type mismatch");
goto failure;
}
if (rds->rdclass != xfr->rdclass) {
result = DNS_R_FORMERR;
- xfrin_log(xfr, ISC_LOG_DEBUG(3),
+ xfrin_log(xfr, ISC_LOG_NOTICE,
"question class mismatch");
goto failure;
}