Skip to content

Allow non-primaries to be members of a catalog zone? #15354

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

Open
omoerbeek opened this issue Mar 24, 2025 · 2 comments
Open

Allow non-primaries to be members of a catalog zone? #15354

omoerbeek opened this issue Mar 24, 2025 · 2 comments

Comments

@omoerbeek
Copy link
Member

omoerbeek commented Mar 24, 2025

Currently the SQL enumerating the members of a catalog zone requires them to be of type 'MASTER'. e.g.

declare(suffix, "info-producer-members-query", "", "select domains.id, domains.name, domains.options from records join domains on records.domain_id=domains.id and records.name=domains.name where domains.type='MASTER' and domains.catalog=$1 and records.type='SOA' and records.disabled=false");

For the typical case---sending a list of candidate secondaries to a secondary auth---that is fine.

In the case of using a catalog zone to send to a recursor (for defining forwards) that's too restrictive. A NATIVE zone could be perfectly fine for that. Maybe even a secondary zone could be used.

We should reconsider this strict approach, IMO.

@omoerbeek
Copy link
Member Author

I'm sure @mind04 has an opinion :)

@klaus-nicat
Copy link
Contributor

klaus-nicat commented Mar 24, 2025

I agree, every type of zone could be a catalog member*. Especially with secondary-do-renotify it makes sense to allow secondary-zones beeing part of a catalog. Type native allows outoing AXFR but does not sent NOTIFYs, so it may sound a bit strange but I am sure someone will find a use case too.

  • I wonder if catalog zones could/should be recursive and type catalog is a valid type too. For example you have a catalog per customer, and a meta-catalog with all the customer-catalogs. So if you have a new customer, you create a catalog for that customer and add that customer-catalog zone to the meta-catalog zone. That way, catalogs may be partitioned and smaller which may improve speed for catalog creation, AXFR and consuming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants