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

I'm able to point a custom bucket named media.example.com to http://s3.amazonaws.com/media.example.com by creating a dns entry media > cname > http://s3.amazonaws.com/media.example.com on my example.com server.

My question is, can you point a top level domain and if so how do you set it up in the DNS?

That is if I create a bucket called, example.com (no subdomain) and in the DNS would I do a cname still and leave the first box empty, select cname for type? Or do I have to point it to a subdomain such as "www" or should it be an a record instead of a cname, etc?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

You can point an S3 bucket to a top level domain but it is a bit complex. Using your example, you should redirect example.com to www.example.com through your DNS provider or through a third-party service. This will give you the IP address that will be the A record for your top level domain, and your www record is configured as cname. So basically you create your cname record as you would in a regular case and just add the www to your subdomain. Just remember that your bucket name and subdomain must be the same and your records must be the same at all levels or else any redirection might result in unexpected behavior.

Hope this clears it up a bit… Lena ;-)

share|improve this answer
add comment

Your Answer

 
discard

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.