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 catalog (Producer) zone support. #218

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

gjherbiet
Copy link

@gjherbiet gjherbiet commented Oct 12, 2024

This pull request aims to bring catalog zones support to dns-ui.
They are also internally called "Producer" zones in PowerDNS.

This is currently a work in progress!
However, feel free to already review and comment changes.

This is my first large pull-request for this project, so advice on how to contribute in the cleanest way is very welcome!

Planned features:

  • Attach existing catalog zone when creating a new zone
  • Set or update catalog zone in existing zones configuration
  • Create new catalog zones
  • Change zone configuration from/to catalog from/to any other type
  • Add catalog zone column in zones listing array
  • Display member zones instead of records in catalog zone details
    • (?) Allow to add/remove member zones from catalog zone details
  • Configure default catalog for new zone in settings

gjherbiet and others added 12 commits October 12, 2024 18:23
When changing to "Producer" replication type, RFC-recommended `invalid.`
namerserver and `soa` from the `catalog`  config section are applied.

When changing from "Producer" to "Master" or "Native" replication type, the
default nameservers template and the the specified SOA are applied.

Zone content (all records except SOA and apex NS RRSet) is kept as this
does not cause issue to PowerDNS: when a zone is set to "Producer", all
non-catalog records are not served.
* create a 'Producer' SOA template according to RFC specifications
* create a 'Producer' NS template according to RFC specifications
* prevent 'Producer' templates name change and deletion
* allocate 'Producer' templates when 'Producer' replication type is selected,
  and revert to default (or empty) templatyes when other replication
  type is selected.
* disable and set empty value for 'Catalog zone' and 'DNSSEC' when
  'Producer' replication type is selected.
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.

1 participant