Custom domain names - heroku - heroku

This doesn't work for some reason.
I have my heroku app: example.herokuapp.com
And my custom domain name: example.com
My settings in heroku seem to be correct. My dashboard says the domain name is example.com and the dns target is example.herokuapp.com
The settings in the control panel for my custom domain name seem right too; url forwarding is set to example.herokuapp.com and the forward mode is: frame(cloaking) default

First list your heroku domains, then follow the steps, and reference the guide linked below.
heroku domains
General steps:
Confirm that you own the custom domain name. If not, you can buy one with a domain registration service.
Add the custom domain to your app with the heroku domains:add command. See below for different variations.
Look up the Heroku-supplied DNS Target for the custom domain using the heroku domains command as described below.
Configure your app’s DNS provider to point to the Heroku-supplied DNS Target.
Test that your app is accessible via the custom domain. There may be a delay while DNS changes propagate.
Check this out

Related

Do I use the DNS Target or the heroku app domain for my CNAME Data?

When setting up a custom domain on Heroku, you are given a DNS Target. My understanding is that this target should be entered into your domain provider's DNS CNAME data to correctly set up the custom domain. However, most tutorials I see online have you do the herokuapp . com domain. What's the difference, is one preferred over another?
Use the DNS target, as the documentation says:
After you add a domain with the heroku domains:add command, you need to point your DNS provider at the DNS target provided by Heroku. You can view this DNS target with the heroku domains command (see View existing domains for details).
Always trust official documentation over third-party tutorials. Non-official documentation is much more likely to be outdated, or simply wrong.

How does heroku know if you are the one who bought the domain name?

I am trying to use a custom domain name in Heroku. So I was following the general directions and I had a question about it.
So I want to get rid of the herokuapp.com in example.herokuapp.com, which requires that I buy the example.com domain name.
It says in the first step "Confirm that you own the custom domain name. If not, you can buy one with a domain registration service."
How does heroku know that I bought example.com in the domain registration service?
If you look at your Herokuapp.com dashboard, for your particular app, you'll find that heroku has issued you a specific domain name. Something like some-custom-string.herokudns.com. Notice that this is herokuDNS.com which is different from herokuapp.com (herokuapp.com is used to access your website publicly). Only you have access to this custom dns string.
When you buy a domain name from a registrar, it'll usually also provide a DNS server. You'll then add a CNAME record in your DNS settings to point to your heroku provided some-custom-string.herokudns.com url. Since only you've access to your DNS server settings, if Heroku finds that the cname entry is present in your DNS records, it'll be a confirmation that you own the domain. The steps to do this are described here.

Unable to use custom domain for Heroku app

I have purchased a domain with a DNS provider – Namecheap for my Heroku app and followed all of the steps given my Heroku and Namecheap for configuring the domain and the DNS target that was given by Heroku with Namecheap. But still my domain is not working, only by free domain provided my Heroku. I have contacted Namecheap and they have told me all of the settings are correct. I am not able to contact Heroku because I'm on the free service, and I have no idea what is missing here.
=== robertosullivan Custom Domains
Domain Name DNS Record Type DNS Target
─────────────────── ───────────────
────────────────────────────────────────────────────────────
robertosullivan.com ALIAS or ANAME concentric-cantaloupe-
koaxxlt4rixetcdacu1ebggn.herokudns.com
In the Advanced DNS settings of Namecheap, the CNAME record has a host of www and the value is set to the DNS target given above.
I just want my custom domain to work for my app, but when I try to access the domain I'm told by a Heroku message "nothing here yet".
Use www.robertosullivan.com instead of robertosullivan.com

How to customize the domain name of godaddy in heroku app

I have successfully added my domain name of go daddy into my Heroku app .. but DNS target is getting something else . I have changed target in go daddy but still It is not showing the correct one . please help me out
Please read the Heroku doc on custom domain names.
Make sure you've done all of the steps below, and remember there can be a delay before DNS changes are noticeable.
Confirm that you own the custom domain name.
You can buy a custom domain name with a domain registration service.
Add 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.
There might be a delay while DNS changes propagate.

Custom domain for heroku app

I am having troubles with setting up custom domain for my heroku app.
here is my heroku app:
https://evening-beyond-1234.herokuapp.com/
and let's say it is my domain:
my-fake-domain.com
So I want my app being able at this domain.
I've added this domain to heroku app domains:
$ heroku domains
=== evening-beyond-1234 Heroku Domain
evening-beyond-1234.herokuapp.com
=== evening-beyond-1234 Custom Domains
Domain Name DNS Target
---------------- ---------------------------------
my-fake-domain.com evening-beyond-1234.herokuapp.com
And on the site where I've bought the domain I can change DNS, so I did this:
1) Type of DNS -> DNS from other hosting provider
2) 1st DNS server (*required) -> evening-beyond-1234.herokuapp.com
3) 2nd DNS server (*required) -> evening-beyond-1234.herokuapp.com
I put the same for the second DNS, because it is marked as required, so I need to specify two DNS.
It's been a few days after these changes and it does not work.
There is also another option for changing DNS: extended DNS editor.
I can specify CNAME entries and others there.
Any ideas what I am doing wrong?
I am completely new to this area, it should be just a silly mistake from my side %)
Your configuration is incorrect. What you are doing is that you are changing the name server of your domain, hence moving the delegation to Heroku.
However, Heroku is not an authoritative name server, hence you can't delegate your domain to them.
What you need to do is restore the delegation at your hosting provider and, instead, check the documentation of your hosting/DNS provider to learn how to create an A or CNAME record to point your domain to Heroku.
Also note that you will not be able to point your apex domain (hence my-fake-domain.com to Heroku unless you use one of these DNS providers that support a CNAME-like capability for the apex domain.
Regardless who you use, you can create a CNAME record to point www.my-fake-domain.com to evening-beyond-1234.herokuapp.com.
For my-fake-domain.com you either create an ALIAS/ANAME according to one of those provider documentation, or you redirect the domain to the www version.

Resources