Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

edit: Amazon now supports this. http://aws.typepad.com/aws/2012/12/root-domain-website-hosting-for-amazon-s3.html

I have my domain config in Route53 at Amazon AWS

exec ping command in my domain without www

$ ping mydomain.com.br
ping: cannot resolve domain.com.br: Unknown host

exec ping command in my domain with www

$ ping www.domain.com.br
PING s3-website-sa-east-1.amazonaws.com ( 56 data bytes
64 bytes from icmp_seq=0 ttl=244 time=25.027 ms
64 bytes from icmp_seq=1 ttl=244 time=25.238 ms
64 bytes from icmp_seq=2 ttl=244 time=25.024 ms

Route 53 -> Create Record Set -> Name: [ ].domain.com.br Set CNAME value: www.domain.com.br


"RRSet of type CNAME with DNS name mydomin.com is not permitted at apex in zone mydomin.com"

share|improve this question
Hi, please note that answers should be provided in the Answers section below, NOT as edits to the question. –  Michael Hampton Jan 8 '13 at 14:45

1 Answer 1

up vote 0 down vote accepted

You can't use a CNAME for the root-level domain, it violates the RFCs and can cause a number of problems. Unfortunately, Amazon doesn't have a workaround for S3-hosted websites.

edit: Amazon now supports this. http://aws.typepad.com/aws/2012/12/root-domain-website-hosting-for-amazon-s3.html

There are services like WWWizer that you can use to redirect to the WWW, but they're not a perfect solution.

share|improve this answer
You CAN use CNAME's with root-level domains it does not violate RFC. The problem is that CNAME can not co-exist with other records e.g. MX. From RFC1034...... If a CNAME RR is present at a node, no other data should be present; this ensures that the data for a canonical name and its aliases cannot be different. This rule also insures that a cached CNAME can be used without checking with an authoritative server for other RR types. –  James Park-Watt Nov 19 '12 at 15:42
@JamesPark-Watt blog.cloudflare.com/… "The problem is the DNS RFC (RFC1033) requires the "zone apex" (sometimes called the "root domain" or "naked domain") to be an "A Record," not a CNAME." –  ceejayoz Nov 19 '12 at 15:45
Perfect -> link Root Domain Website Hosting for Amazon S3 –  romuloigor Jan 8 '13 at 13:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.