CNAME + PointDNS + HEROKU not working properly - heroku

recently I added PointNDS to my project on Heroku and I can access to the web via myapp.com, but if you try 'www.myapp.com', i got the message: "There is no such app on that directory" or something like that
I added the url as suggested ond the docs (myapp.com) in heroku, and also in pointdns, generating all the proper dns, cname, a, etc.
In heroku i have this domains: myapp.herokuapp.com - myapp.com
The ALIAS point to myapp.com
The CNAME point to www.myapp.com
Any idea what i have missed on the config?
Regards, and sorry if my english is not perfect, i'm still studying.

Each external DNS hostname needs to be registered with Heroku:
myapp.com ALIAS => myapp.herokuapp.com
www.myapp.com CNAME => myapp.herokuapp.com
Both myapp.com and www.myapp.com need to be registered as domains on your Heroku app.

Related

Trouble connecting domain name to Heroku app

I have bought a domain name with Porkbun.com, I have added that domain to my herokuapp domains and received a DNS target. I have added an ALIAS record with host: 'mywebsite.domain' and target as the DNS target I received from Heroku.
When trying to access the domain I get 'bad Request (400)' error. I have then tried these three separate steps:
As instructed by Porkbun I added another ALIAS record with host: www.mywebsite.domain and target: 'mywebsite.domain'.
I deleted all the ALIAS records I had and added a CNAME record with host: 'www.mywebsite.domain' and target: 'mywebsite.herokuapp.com'.
Changed CNAME target to be the DNS record I received from Heroku.
In the three cases I receive a Heroku page saying 'There is nothing here' and titled 'no such app'.
Similar problem occurred to me yesterday when i tried to deploy a ghost app to heroku pointing to a custom domain name purchased through porkbun. After googling i found out that the IT TAKES ALMOST A DAY TO RESOLVE THE DNS POINTING TO THE CUSTOM DOMAIN in porkbun.
Solution
I changed the CNAME RECORD pointing to the herokuapp url;-"yourappname.heruko.com"
Add the host as WWW
You can also use ALIAS-CNAME RECORDING to point to the heroku app url.
heroku domains:add example.com
heroku domains:add www.example.com
heroku domains:add *.example.com
This is to point your domain name from heroku side
Check out this video its about connecting your domain name to godaddy. I think its the same way with porkbun youtube.com/watch?v=kKGSGT7mSnQ&t=75s
Please let me know if this does work for you

adding custom domain in heroku with big rock domain

I have a heroku app which i want to point to www.infoxpression.in
I added the domain name on heroku and added CNAME record in my bigrock DNS management but it is not working...
Big rock DNS management records:
Heroku dashboard:
Am i doing it wrong?
To connect your heroku hosting to big rock domain,
You have to open your big rock domain account and in the DNS Management page add in the cname the host: www and in the point to: your heroku url And in the heroku page in the settings add three domains:
1 *.xyz.com
2: xyz.com
3. www.xyz.com
This is to point your domain name from heroku side
heroku domains:add example.com
heroku domains:add www.example.com
heroku domains:add *.example.com
This should work :) Check this video https://www.youtube.com/watch?v=kKGSGT7mSnQ&feature=youtu.be
Please make sure that your bigrock account has default nameservers
like in the image:
Domain registration >> Name Servers
Do the domain forwarding as well.
Domain forwarding >> Manage domain forwarding >> add new
sub-domain prefix = (leave it blank if you have no subdomain)
destination URL = http://www.yourdoamin.com
URL masking is off
However, it will take 24-48 hours for updating.

use both www and naked domain to point my heroku app

I am having trouble to set both my www.domain.org and domain.org to point to Heroku rails app.
I did a CNAME from www to www.example.org.herokudns.com.
it works fine and my www.example.org point to my example.herokuapp.com
Concerning https://example.org
Should I do a
CNAME from # to example.herokudns.com ?
ALIAS is only accepted for IPs with my domain provider..
I having trouble finding an answer in stackoverflow.
Should I use http://wwwizer.com/naked-domain-redirect ?
Do I have a solution without using a third party free service ?
For naked domain example.com you can use the forwarding functionality. If you have purchased domain from GoDaddy you can follow this:
Go to manage DNS and scroll down to forwarding section where you will see something like this:
You can choose https and forward to www.example.com. (You can also make your naked domain point to some other subdomain)
heroku domains:add example.com
heroku domains:add www.example.com
heroku domains:add *.example.com
This is to point your domain name from heroku side
Here is a youtube video to make it easier https://www.youtube.com/watch?v=kKGSGT7mSnQ&t=29s
Please let me know if this does work

Heroku custom domains

I'm trying to add a custom domain for my heroku app, myapp.herokuapp.com to www.example.com
Here are the steps i've done so far :
In heroku setting, i added my custom domains, so heroku gave my the
following DNS Target: www.example.com.herokudns.com
On my DNS provider (ovh) setting, i created the following CNAME
record: www.example.com with the following target:
www.example.com.herokudns.com
I waited for more than 24hours, but i still cant access my site with
www.example.com
Did i forget one step ?
Many thanks

How to point subdomain to a Heroku app, and root domain to another Heroku app?

I'm having trouble with routing a subdomain to a Wordpress blog hosted on Heroku, and the root domain to another Heroku app.
If I have purchased a domain called cheese.com on NameCheap and I'd like to route a subdomain like blog.cheese.com how could I do this on Heroku?
What type of setting would I need to place on each Heroku application?
I'm not sure of exact directions for NameCheap but the general way to redirect a subdomain to the Heroku app would be to add a CNAME record to the subdomain. To redirect the root domain you will need to set a CNAME like functionality at the zone apex.
Subdomain
blog.cheese.com would have a CNAME record pointing to myblog.herokuapp.com, you may also want to create a CNAME record for www.blog.cheese.com.
An example record could be:
Name: blog.cheese.com
TTL: 14400
Type: CNAME
Address: myblog.herokuapp.com
Once both CNAME records are set up you will need to tell heroku to point the domain to your app.
heroku domains:add --app myblog blog.cheese.com
If you do this for both your subdomains they should now point to your Heroku apps.
Root Domain
To point the root domain you will need to set a couple of records
Host Name: #
URL: http://www.cheese.com
Record Type: URL Redirect
Host Name: www
URL: mymainpage.herokuapp.com
Record Type: CNAME (alias)
Once both records are setup just call the command below via Heroku to point your domains to it.
heroku domains:add --app mymainpage.herokuapp.com cheese.com
Here are a couple of places to look for extra information.
Point namecheap domain to Heroku
Custom Domains | Heroku Dev Center
You will have to add the custom domain to your heroku app - https://devcenter.heroku.com/articles/custom-domains -
After setting the necessary DNS, you can add the wildcards

Resources