]> git.ipfire.org Git - thirdparty/bind9.git/commit
chg: usr: allow IXFR-to-AXFR fallback on DNS_R_TOOMANYRECORDS
authorNicki Křížek <nicki@isc.org>
Tue, 10 Sep 2024 12:38:45 +0000 (12:38 +0000)
committerNicki Křížek <nicki@isc.org>
Tue, 10 Sep 2024 12:38:45 +0000 (12:38 +0000)
commitb343484ddb6bdd6f971d0c28e2e72bdfa1e9c40a
tree10760a5a7f6ac472e183c74d90f5e01f2f566f08
parent6bb4070685c1eb045b9528adcaaa93ace34a376b
parent7289090683b07d5c9e9843fb68fe626f8552c664
chg: usr: allow IXFR-to-AXFR fallback on DNS_R_TOOMANYRECORDS

This change allows fallback from an IXFR failure to AXFR when the reason is `DNS_R_TOOMANYRECORDS`. This is because this error condition could be temporary only in an intermediate version of IXFR transactions and it's possible that the latest version of the zone doesn't have that condition. In such a case, the secondary would never be able to update the zone (even if it could) without this fallback.

This fallback behavior is particularly useful with the recently introduced `max-records-per-type` and `max-types-per-name` options: the primary may not have these limitations and may temporarily introduce "too many" records, breaking IXFR. If the primary side subsequently deletes these records, this fallback will help recover the zone transfer failure automatically; without it, the secondary side would first need to increase the limit, which requires more operational overhead and has its own adverse effect.

Closes #4928

Merge branch 'fallback-ixfr-to-axfr-on-toomanyrecords' into 'main'

See merge request isc-projects/bind9!9333