CDN + DNS, problem for domain without www

pppplus

Verified User
Joined
Dec 19, 2008
Messages
518
Hi

I try to install CDN (from OVH) on a domain.
I have to delete A fields, and add CNAME fields.

For www no problem, it works.
But for domain.tld, I've an error :

example :
mydomain.tld. CNAME mydomain.tld.web.cdn.anycast.me

Reply is :
Error Writing Records

Details

Unable to save dns zone: named-checkzone returned:
loading "mydomain.tld" from "/var/named/mydomain.tld.db.temp" class "IN"
dns_master_load: /var/named/mydomain.tld.db.temp:34: mydomain.tld: CNAME and other data
dns_master_load: /var/named/mydomain.tld.db.temp:40: mydomain.tld: CNAME and other data
zone mydomain.tld/IN: loading from master file /var/named/mydomain.tld.db.temp failed: CNAME and other data
zone mydomain.tld/IN: not loaded due to errors.


Do you have an idea ?
I test on several domains, always the same answer.

Problem is only for mydomain.tld.
I can enter what I want, it works.

For information, dns file is :

$TTL 14400
@ IN SOA aaaaa.bbbb.fr. hostmaster.mydomain.tld. (
2015030406
14400
3600
1209600
86400 )

mydomain.tld. 14400 IN NS aaaaa.bbbb.fr.
mydomain.tld. 14400 IN NS sdns2.ovh.net.

ftp 14400 IN A 11.22.33.44
localhost 14400 IN A 127.0.0.1
mail 14400 IN A 11.22.33.44
news 14400 IN A 11.22.33.44
pop 14400 IN A 11.22.33.44
smtp 14400 IN A 11.22.33.44
www.news 14400 IN A 11.22.33.44

mydomain.tld. 14400 IN MX 10 mail

www 14400 IN CNAME mydomain.tld.web.cdn.anycast.me.
 

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
Are you trying to create a CNAME record for mydomain.tld? If so, it will always fail. Even if you do it manually from the shell, but in that case it will completely break DNS.

The limitation is with DNS. If you have a CNAME record you cannot have any other records in the zone for that domain. And there's no way to create a zone file with no SOA record.

See this Wikipedia article (wikipedia.org).

Contact your CDN support group for a work-around.

Jeff
A
 
Top