Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Inhibit creation of incompatible record types in zones #72

Closed
peteeckel opened this issue Nov 28, 2021 · 2 comments · Fixed by #181
Closed

Inhibit creation of incompatible record types in zones #72

peteeckel opened this issue Nov 28, 2021 · 2 comments · Fixed by #181

Comments

@peteeckel
Copy link
Contributor

Generally in a reverse zone there can't be any A/AAAA records and in a non-reverse zone there can't be any PTR records.

To improve the reliability of the system, creating records of the wrong type should be inhibited on the form and/or model level. Some other record types (e.g. MX) will also be affected by the same restrictions on PTR zones.

@JuergenKammer
Copy link

Generally? See RFC 1101 for corner cases: network masks may show up as A records in reverse zones if you want to make your subnetting visible, and PTR records in non-reverse zones if you track "network names" (wow!?). Though I am quite unsure if we'll find these usages nowadays in the wild. OTOH prohibiting it does not feel right (could i.e. be used for documentation in internal views).
Nevertheless, prohibiting (definitly) wrong entries is the right idea.

@peteeckel
Copy link
Contributor Author

This issue is a bit too broad to be handled in one single change. Most of what it intends has been implemented by the record validation code in #181 and #175, and as @JuergenKammer pointed out some parts of this issue don't actually make as much sense as they seemed to.

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

Successfully merging a pull request may close this issue.

2 participants