Skip to content

Commit

Permalink
Merge pull request #301 from ttyS4/master
Browse files Browse the repository at this point in the history
improve the logging of ixfr fallbacks to axfr
  • Loading branch information
wcawijngaards committed Oct 31, 2023
2 parents 19c67fb + d89b345 commit be5d381
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ixfr.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,13 +820,17 @@ query_state_type query_ixfr(struct nsd *nsd, struct query *query)
/* we have no ixfr information for the zone, make an AXFR */
if(query->tsig_prepare_it)
query->tsig_sign_it = 1;
VERBOSITY(2, (LOG_INFO, "ixfr fallback to axfr, no ixfr info for zone: %s",
dname_to_string(query->qname, NULL)));
return query_axfr(nsd, query, 0);
}
ixfr_data = zone_ixfr_find_serial(zone->ixfr, qserial);
if(!ixfr_data) {
/* the specific version is not available, make an AXFR */
if(query->tsig_prepare_it)
query->tsig_sign_it = 1;
VERBOSITY(2, (LOG_INFO, "ixfr fallback to axfr, no history for serial for zone: %s",
dname_to_string(query->qname, NULL)));
return query_axfr(nsd, query, 0);
}
/* see if the IXFRs connect to the next IXFR, and if it ends
Expand All @@ -835,6 +839,8 @@ query_state_type query_ixfr(struct nsd *nsd, struct query *query)
end_serial != current_serial) {
if(query->tsig_prepare_it)
query->tsig_sign_it = 1;
VERBOSITY(2, (LOG_INFO, "ixfr fallback to axfr, incomplete history from this serial for zone: %s",
dname_to_string(query->qname, NULL)));
return query_axfr(nsd, query, 0);
}

Expand Down

0 comments on commit be5d381

Please sign in to comment.