What the message looks like
dns_master_load: example.com.zone:12: example.com: CNAME and other dataCommon causes
- A hoster or SaaS provider asks for “CNAME to app.provider.net”, including the root domain.
- The zone editor rejects the entry or BIND refuses to load the zone.
- A provider accepts it anyway – then MX or TXT lookups break unpredictably.
- CNAME and TXT on the same subdomain name, e.g. for a verification.
Check
- Check the zone file for errors (BIND)
named-checkzone example.com /etc/bind/db.example.com - Show existing records at the apex
- Get the provider's target IP
dig app.provider.net A +short
Fix
- For the root domain set A and AAAA records with the provider's IPs.
- If your DNS provider supports it: use ALIAS, ANAME or CNAME flattening instead of a CNAME.
- Redirect the root domain to www via HTTP and create only www as CNAME.
- On subdomains never mix a CNAME with other records of the same name.
- Check the zone after changes and lower the TTL before switching.
Typical scenario
A marketing team connects the main domain example.com to a website builder that gives only a host name as the target. The admin enters a CNAME at the apex, and when loading the zone BIND reports 'CNAME and other data'. The apex has SOA, NS and usually MX and TXT, and a CNAME tolerates no other records at the same name. First check whether your DNS provider supports ALIAS, ANAME or CNAME flattening.
FAQ
Why does a CNAME work on www but not on example.com?
www has no other records, so a CNAME is allowed. The apex always needs SOA and NS, and nothing else may sit next to a CNAME.
What does CNAME flattening do?
The DNS provider resolves the target itself and serves A and AAAA records at the apex. To resolvers it looks like a normal A record.
Why does DNS forbid a CNAME next to other records?
A CNAME says this name is merely an alias for another and all queries belong there. MX or TXT records existing at the same time would contradict that principle. The rule comes from the early DNS standards and applies to other types as well.
Is ALIAS or CNAME flattening a standard?
No, it is a feature of individual DNS providers. The provider resolves the target itself and serves ordinary A and AAAA answers. Behaviour and names (ALIAS, ANAME, flattening) differ by provider.
What do I do if my provider cannot do it?
Enter the target's IP addresses directly as A records if they are fixed, or connect only www.example.com via CNAME and redirect the apex to www by HTTP. The redirect then needs its own web server with a certificate.