Trouble connecting domain name to Heroku app - heroku

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

Related

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.

Godaddy CNAME record does not work with heroku DNS target

I have bought the following domain www.rodrigoloza.com from GoDaddy. I have a Django application deployed in heroku https://rodrigo-blog-123456.herokuapp.com/
I wanted to add my www domain to my heroku app, so I edited the CNAME of my DNS and added the following information.
Type: CNAME
Name: www
Value: rodrigoloza.com.herokudns.com
TTL: 1 Hour
When I check heroku domains -a app_name I get that the domain name has been set to the DNS target www.rodrigoloza.com.herokudns.com but when I click on my domain I see the page cannot be found. I don't know what can be wrong.
Pd: I have waited for more than 48 hours so changes should have propagated by now.

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

CNAME + PointDNS + HEROKU not working properly

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.

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