Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure heroku application DNS to Godaddy Domain?

Tags:

heroku

dns

I have created a heroku application and wants to give domain to it from godaddy.com.

I have configured all three hosts provided by heroku but now I am getting error saying:

Heroku | No such app

There is no app configured at that hostname.

Perhaps the app owner has renamed it, or you mistyped the URL.

I want to know: is there any other way to configure a heroku app?

UPDATED : New Approach Please use this link for new approach . Accepted answer is old feature.

like image 448
Arpit Vaishnav Avatar asked Aug 24 '11 05:08

Arpit Vaishnav


People also ask

Does Heroku work with GoDaddy?

GoDaddy does NOT Support Heroku.

How do I connect my Heroku app to my domain?

Summary of stepsAdd the custom domain to your app with the heroku domains:add command. Look up the Heroku-supplied DNS target for the custom domain using the heroku domains command. Configure your app's DNS provider to point to the Heroku-supplied DNS target. Confirm that your app is accessible via the custom domain.

How do I add a DNS target to GoDaddy?

Click your GoDaddy profile in the top right menu bar and select Manage My Domains. Click the down arrow to the right of the domain you want to point to Pantheon, then click Manage DNS. Click the Add button and select A from the type dropdown menu.


2 Answers

There are 2 steps you need to perform,

  1. Add the custom domains addon and add the domain your going to use, eg www.mywebsite.com to your application
  2. Go to your domain registrar control panel and set www.mywebsite.com to be a CNAME entry to yourapp.herokuapp.com assuming you are using the CEDAR stack.
  3. There is a third step if you want to use a naked domain, eg mywebsite.com when you would have to add the IP addresses of the Heroku load balancers to your DNS for mywebsite.com

You can read more about this at http://devcenter.heroku.com/articles/custom-domains

At a guess you've missed out the first step perhaps?

UPDATE: Following the announcement of Bamboo's EOL proxy.heroku.com being retired (September 2014) for Bamboo applications so these should also now use the yourapp.herokuapp.com mapping now as well.

like image 80
John Beynon Avatar answered Sep 19 '22 23:09

John Beynon


I used this videocast to set up my GoDaddy domain with Heroku, and it worked perfectly. Very clear and well explained.

Note: Skip the part about CNAME yourdomain.com. (note the .) and the heroku addons:add "custom domains"

http://blog.heroku.com/archives/2009/10/7/heroku_casts_setting_up_custom_domains/


To summarize the video:

1) on GoDaddy and create a CNAME with

Alias Name: www Host Name: proxy.heroku.com 

2) check that your domain has propagated by typing host www.yourdomain.com on the command line

3) run heroku domains:add www.yourdomain.com

4) run heroku domains:add yourdomain.com

It worked for me after these steps. Hope it works for you too!

UPDATE: things have changed, check out this post Heroku/GoDaddy: send naked domain to www

like image 23
Alexandre Avatar answered Sep 18 '22 23:09

Alexandre