Can't see my domain name when using Heroku - heroku

I got a domain name "raghavkumar.work" from name.com recently and I'm using Heroku servers to run my personal website. I added "www.raghavkumar.work" and "raghavkumar.work" into the custom domain addons in Heroku like so:
Then I went into name.com and I added three A records that mapped "raghavkumar.work" to three IP Adresses associated with Heroku like this:
I type in "raghavkumar.work" into my address bar, but it immediately redirects to the heroku app address. Here's what I see in the address bar:
How can I get my own domain name to show up instead of this annoying heroku app address name? No matter what I do, I can't get my own domain name to show up. It's always redirected to heroku's address. Thoughts?

Do you have a CNAME file?
...just a file called CNAME (no extension) with nothing but the bare domain name inside it (raghavkumar.work)...
https://devcenter.heroku.com/articles/custom-domains

Related

PointDNS - "Name is managed by another account" on Heroku App

I'm trying to add a domain at one of my heroku apps.
I just added a custom domain in the app, but when I open PointDNS(DNS host recommended by heroku), my domain isn't listed there.
It shows the message You haven't added any domains yet. Go ahead, and add your first domain.
Then, when I try to add the domain name, it says Name is managed by another account.
I checked all my other apps, and no one have this domain registered. I've also tried the command heroku domains -a my-app and it correctly shows me the registered domain.
Summarize: I can't manage a domain in PointDNS due to the error Name is managed by another account, but there is no another account with this same domain. What could the problem be?
Since I couldn't solve the problem with PointDNS support, I've decided to transfer my website onto another domain registrar. That's it.

Using a custom domain from name.com with heroku

I want to use a domain I bought from name.com to be the domain name to my heroku appliation.
This is what I did.
I added my custom name to my Heroku app.
I copied the DNS Target that Heroku generated.
I then went to name.com and used a CNAME entry.
In the HOST entry, I tried both '*' and 'www' (without the quotes). By both i mean, two different occasions.
In the TARGET entry, I used the DNS Target that Heroku generated.
Now, when I visit my_domain.com I get that this page does not exist.
When I visit www.my_domain.com, I go to the heroku domain, not MY app, and I get a message from heroku that there is nothing here yet.
I get the same results even if i use '*', or 'www' in the HOST entry (without the quotes).
I found the solution.
On heroku, use two domain names for your app. One with 'www' and onw wihtout 'www'.
Then, just make two CNAME entries, back on name.com. The one will be the Domain Name with the 'www' from Heroku, with the appropriate DNS Target. The one will be the other domain name, with its appropriate DNS Target.

Custom domain redirects to Heroku domain instead of acting as alias

I've tried connecting my Heroku app to a custom domain. When I go to my custom domain a redirect happens but the url then appears as "{name}.herokuapp.com". I bought the domain from Hover and have added both www.{domain}.com and {domain}.com to Heroku. Output of heroku domains shown here:
I then added both targets to Hover (shown here):
I'm quite confused and any help would be great.
After talking to Hover customer support I found out that aliasing with Heroku isn't possible. They offer redirects but that's it. They need an IP address to use as an A name but Heroku changes your IP address regularly so it's not possible. I'm moving it to NameCheap and using that instead.

Using Hostgator Domain on Heroku

I am trying to use my hostgator registered domain on my node.js application deployed through heroku.
I have added the domain to my heroku application through the custom domain feature, and when i type "Heroku Domains" in the console, it shows up with a target of: "photosbysalwa.com.herokudns.com" and a type of ALAIS or ANAME.
When I try to add an ANAME record through hostgator, I try to set the address to "photosbysalwa.com.herokudns.com" but it won't let me submit the record because it says the address must be an IP address.
If you could help me with how to get the domain pointed, that would be fantastic.
Check this video its about how to point your domain name to heroku hosting.
It have godaddy domain name and its the same way to hostgator I think
in the heroku page in the settings add three domains:
1 *.xyz.com
2: xyz.com
3. www.xyz.com
open your Hostgator account and in the DNS Management page add in the cname the host: www and in the point to: your heroku url
https://www.youtube.com/watch?v=kKGSGT7mSnQ&t=9s
I believe this will solve your problem

Media Temple and Heroku CNAME

I am using Media Temple to configure my DNS settings for a domain. I recently launched an application on Heroku and want to set a subdomain of my domain to be the CNAME for the Heroku application. The issue is the DNS editor places a period at the end of the Heroku domain name when I enter it as a CNAME, and Heroku shows an error that this is not a valid domain.
In my DNS settings, I have:
subdomain.domain.com CNAME appname.herokuapp.com
When I save this, it shows up in the settings as
subdomain.domain.com CNAME appname.herokuapp.com.
Any ideas on how to remove that trailing dot?
I ran into this problem the other day when setting up CloudFlare for my Heroku app. "I do not think it means what you think it means."
With Heroku, you have to add domains that your app will be accessible from, even if your managing DNS elsewhere. Here's there documentation for how to do it. Basically, you can do this from the terminal:
cd into your app's directory
heroku domains:add subdomain.domain.com to add the subdomain like you want.
Also, on mediatemple, I think you might need to put just the subdomain part instead of subdomain.domain.com, though it'll probably work either way. As shown on the knowledgebase article from launchrock on adding a CNAME with Media Temple:
"5. In the Name field, enter the part of the address you chose to use for your website with
LaunchRock. For example, if you chose signup.yoursite.com, enter signup in the Name field."

Resources