CNAME Record Model¶
Added in version 1.2.0 — CNAME exclusivity
When CNAME exclusivity is enabled (via the CNAME_RESTRICTION_ENABLED configuration), the app enforces CNAME rules per RFC 1912 §2.4:
- A CNAME cannot co‑exist with any other record type that has the exact same
namein the samezone. - Conversely, a non‑CNAME record cannot co‑exist where a CNAME with the exact same
namealready exists in the samezone. - Name comparison is exact:
- A zone‑qualified
namesuch ashost.example.comis distinct from the relativehostunder zoneexample.com. - A trailing dot is ignored (e.g.,
host.example.com.is treated ashost.example.com).
- A zone‑qualified
Additional constraints:
- Database uniqueness for CNAME is (
name,alias,zone).
Examples:
- Blocked:
A(name="www")andCNAME(name="www")in the same zone. - Allowed:
A(name="www")andCNAME(name="www.example.com")in zoneexample.com. - Allowed:
A(name="www")andCNAME(name="www.example.com.")(trailing dot ignored).
See the installation guide for configuration options.