Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to turn off optimisation for rebuild_dnssync #411

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

peteeckel
Copy link
Owner

fixes #410

This PR turns off optimisations for the rebuild_dnssec management command that save much time in the general case, but may lead to an incomplete rebuild if IP address filters for views are in place. This behavior has not been made the default because in many cases it won't be necessary and in the general case it saves a lot of time.

The optimisation simply checks whether the IP address (address, DNS name and the DNSsync CFs) is still consistent with the address records associated with the address, and updating the records only if that's not the case. This does not take the case into account that the inconsistency is caused by a modified IP address filter, though, as checking that case on an individual base is expensive in terms of database operations.

By using the --force flag it's now possible to override the optimisation, which covers the case of modified or deleted IP address filters as well.

@peteeckel peteeckel merged commit f92393b into main Sep 27, 2024
6 checks passed
@peteeckel peteeckel deleted the fix/rebuild-force-option branch September 27, 2024 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rebuild_dnssync management command does not work for changed IP address filters on view
1 participant