CNAME records fail to save

wyatt400

New member
Joined
Apr 5, 2022
Messages
3
I can add any other type of DNS record but a CNAME record fails to save.
I wish to point gnps.gaplagov.org. CNAME ghs.googlehosted.com. in DirectAdmin.
I've included the period at the end.

But I get this error:
Unable to save dns zone: named-checkzone returned:
loading "gaplagov.org" from "/var/named/gaplagov.org.db.temp.3124069.3gwOxhX8V4" class "IN"
dns_master_load: /var/named/gaplagov.org.db.temp.3124069.3gwOxhX8V4:62: court.gaplagov.org: CNAME and other data
zone gaplagov.org/IN: loading from master file /var/named/gaplagov.org.db.temp.3124069.3gwOxhX8V4 failed: CNAME and other data
zone gaplagov.org/IN: not loaded due to errors.

What am I doing wrong?

All other records such as A/AAAA/NS/TXT save successfully.
 
Looks like you have another record for `gnps.gaplagov.org.` in your zone file as well ("and other data"), possibly an A record?
 
No, I only have a TXT record. Maybe I need to remove the record then add the CNAME?
 
Yup, I tested it with a random subdomain, that was the error. Weird, considering that it only was a TXT record.
 
CNAME is a little difficult sometimes, I can't remember at the top of my head what the RFC says, but it's not allowed to live next to several other records, which is the reason you can't have your apex/root domain be a CNAME for example.
 
Back
Top