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

DNS Zones Configuration Update #219

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

mosquito
Copy link
Collaborator

Adds atomic configuration reload capability for DNS zones and records.

Key changes:

  • Introduces replace() method for both DNSStore and DNSZone classes to atomically update configurations
  • Changes DNSZone constructor to accept initial records
  • Renames _is_valid_record to check_record for better clarity
  • Updates Store's replace method to use Mapping type for better zone name uniqueness

All changes covered by comprehensive test suite including edge cases like empty replacements and invalid records.

The main goal is to support safe configuration reloads from external sources (files, databases, etc.) while maintaining data consistency.

@mosquito mosquito requested a review from alvassin December 30, 2024 15:23
@mosquito mosquito merged commit 25ac87f into master Dec 31, 2024
16 checks passed
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.

2 participants