Custom domain for heroku app - heroku

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.

Related

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.

Heroku's DNS is causing conflicts with Google Suite MX records

Heroku DNS is causing troubles: cannot recieve any email at myuser#stickersgallito.pe that uses Google Suite as Mailbox.
My host provider is Punto.pe a peruvian company.
My projects is hosted in Heroku, in there I've 2 DNS:
1) www.stickersgallito.pe -> ancient-crab-bwwmzXXXXXXXXXXXX.herokudns.com
2) stickersgallito.pe -> functional-wallaby-XXXXXXXXXXXXXXXX.herokudns.com
I need that people can visit the site entering: www.stickersgallito.pe or just stickersgallito.pe.
So I've entered these 2 records as CNAMEs in my Host Provider Registry Panel.
Problem:
I've also set up other tools like MailGun and Google Suite (to have mailboxes like omar#stickersgallito.pe). MailGun functions correctly, I can visit the page either using: www.stickersgallito.pe or stickersgallito.pe.
But I cannot recieve emails at omar#stickersgallito.pe.
I've consulted my Host Provider and the say that the record for
stickersgallito.pe ->
functional-wallaby-XXXXXXXXXXXXXXXX.herokudns.com is the
problem. It's interfering with other records.
They don't offer any solution, but point to Heroku for a response.
Heroku point me to their documentation and if after following it's steps it doesn't work I should talk to my Host Provider.
My host provider says that if I can provide an IP Address from Heroku we could solve this. Heroku's doesn't offer an IP address as far as I know.
Google Documentation to Set Up MX Records:
https://support.google.com/a/answer/140034?hl=en
What can I do?
DNSs in Host Provider:
Registers:
UPDATE 1:
This is the kind of records my Host Provider allows me to enter: A, CNAME, TXT, MX.
When using heroku domains I get:
The CNAME record is forbidden for the root domain exactly for this reason, it doesn't allow any other records you have to work the way you want them to. In the heroku docs they say to use a CNAME like functionality for the root domain, which is ALIAS or ANAME record, but don't use CNAME, your provider should not even allow you to create it.
You can configure heroku to work for a subdomain (e.g. www) and then use a Web Forwarding/Redirecting for the root domain to the www subdomain, if your DNS host doesn't support ALIAS or ANAME record. Contact them for more information.
Here is more info about the root domain configuration: https://devcenter.heroku.com/articles/custom-domains#add-a-custom-root-domain
And here is for a subdomain: https://devcenter.heroku.com/articles/custom-domains#add-a-custom-domain-with-a-subdomain

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 names - 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

Resources