Domain Name Heroku Dns
Next we ll need to buy a custom domain from namecheap or godaddy.
Domain name heroku dns. The first thing to understand when adding a domain to your heroku app is that there are different types of domains and each domain type needs different types of records set in your dns provider in order for your domains to work with heroku. Configuring naked domain this section explains how to configure the domain name to work without www in front of the domain. The domains details page will show the dns files related to the domain name. Dns propagation time varies and may take less than ten minutes or even a day.
I ve got a domain hosted dns only on dreamhost. Click on the dns zone file tab and remove all records leaving only the nameservers. Heroku domains a your app name. Change host to www and point to the heroku app domain.
Root domain sometimes called an apex domain this is a domain that you buy register with a dns. The dns will then take some time to propagate. Ofcourse you can only cname. The heroku app domain.
To get the root domain aka wordnerds co without the www before it i added a aname record left the name host field empty and entered the target answer per heroku s instructions for. Once the dns propagation is complete the heroku app will be accessible under the godaddy domain. This target type should be cname. It will give you a dns target type and dns target name.
If only the subdomain subdomain yourdomain tld not the root domain itself yourdomain tld should be mapped to heroku e g the root domain is using some other hosting service there is no need to add the url redirect record. Link to a custom domain on heroku. The cname record which points to the values provided by heroku is enough.