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've got a domain hosted (DNS only) on Dreamhost. I've got www.mydomain.com CNAME'd to my web app on heroku, I would also like to CNAME just the domain (mydomain.com). Ofcourse, you can only CNAME subdomains.

What should I do to make mydomain.com point to my heroku app, or even redirect to www.mydomain.com?

Cheers!

share|improve this question

2 Answers 2

Heroku's documentation on the matter references DNSimple's ALIAS records. If Dreamhost doesn't offer something similar, you'll need to run a small server handling the apex record, use a service like wwwizer.com, or switch DNS providers to one like DNSimple.

share|improve this answer

Here's a great write up on how to work around Dreamhost's setup to use custom domains for your Heroku App.

Basically you create a www cname with the value of your custom heroku app address, then you redirect your @ root traffic to your www sub-domain.

share|improve this answer

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.