Simple steps to pointing your GoDaddy domain to a Heroku App

When looking to develop a Heroku app for your business, the first thing that you’re most concerned about is whether it will have a unique name. As such, there are several ways through which you can achieve this. One of the best ways to do this is through purchasing a domain name and subsequently pointing it to your Heroku app.
Want to learn more on how to do this? Please read on.
Simple Steps To Pointing Your GoDaddy Domain To A Heroku App

How To Set Up Heroku And GoDaddy?

This process should not cause you a headache whatsoever since it often involves several simple steps that will consume very minimal time.

Step 1

Add a GoDaddy domain to your Heroku app. To do this, just navigate to the app’s project folder from the terminal and subsequently type Heroku domains plus www.yourdomain.com. Your domain name is the one you already purchased from GoDaddy.

Step 2

Log on to your GoDaddy user account before navigating to the domains area found in the upper left navigation tab. Here, you will select your preferred domain and launch it. After launching the domain, you will be redirected to the domains details page. In the domain details page, you will find DNS files that are related to that particular domain name. Click the DNS Zone File tab, clear all the records and only retain the Nameservers.

Step 3

Here, you will be required to add the www CNAME record that helps point to the Heroku app domain. While at it, change to www and subsequently point it to the Heroku app domain. The resulting domain name should appear something like myapp.herokuapp.com.

It might take some time for the DNS to propagate with the wait time lasting anything between ten minutes and a day. Once this DNS propagation process is complete, the Heroku app can then be accessed under the GoDaddy domain.

How to Configure Naked Domain?

In this section, you will learn how you can configure your domain name so that it doesn’t include the www extension. As such, anyone looking to access your domain can simply type yourdomain.com instead the traditional www.yourdomain.com. This process is described as making the domain name naked. Below are the steps to follow.

Step 1

Assuming that you’re already on the domain’s page, click the “Settings” tab. This should prompt four sections to appear. Under the “Forwarding” section, click “Manage” to open another new window that allows you add forwarding details.

Step 2

Here, click the “Add Forwarding” section. You can then set “Forward to your domain name”. Additionally, set the “Redirect Type” section to 301 (permanent) while the Forward settings to “Forward Only”.

Step 3

This should be the last step whereby you will need to enable the “Update my Nameservers and DNS settings to support this change (Recommended)” option. With this, your DNS propagation process is complete and should thus prompt redirection to take effect.

Conclusion

Conclusion
By keenly following all the steps outlined here, users should be in a position to access your Heroku app using the domain you purchase from GoDaddy. Besides, your naked domain can also redirected to your primary domain thereby making access to your app or business easier.

Leave a Reply

Be the First to Comment!

Notify of
wpDiscuz