heroku and domain name conventions - heroku

(tried on Server fault, so going to try here)
Hi I recently setup my octopress blog at http://davidmjohnson.me. This domain works fine, but when I try http://www.davidmjohnson.me I get a "heroku no app found." Why is the www not working. Would really appreciate an explanation. I bought my domain name at dnsimple. Do I need to add a redirect from "http://www.dav..." to just "http://dav..." ?
Thanks

I'm guessing you need to configure this domain (and any subdomain) in the heroku CLI application (equiv. of ssh-ing into the machine and changing the nginx/apache location/virtualhost configuration).
I see they have an entry about this in their reference:
https://devcenter.heroku.com/articles/custom-domains
To elaborate a bit from the documentation:
Subdomains ( www.mydomain.com)
For each subdomain you want to setup configure your DNS provider using
a CNAME record pointing the subdomain to the applicable Heroku
hostname.
If the app is on Cedar, then CNAME the subdomain to myapp.herokuapp.com
If Bamboo, then myapp.heroku.com
In DNSimple a CNAME
record entry for a Cedar app would look like:
You can confirm that your DNS is configured correctly with the host
command:
$ host www.example.com
www.example.com is an alias for myapp.herokuapp.com.
myapp.herokuapp.com is an alias for ar.herokuapp.com.
ar.herokuapp.com is an alias for argon-stack-1879049447.us-east-1.elb.amazonaws.com.
argon-stack-1879049447.us-east-1.elb.amazonaws.com has address 107.20.157.144
...

Actually, it should really be the other way around. It is much better practice to point CNAMEs at Heroku apps, since Heroku apps have no real "static" IP. Since naked domains need an A-record, pointing a naked domain to a Heroku app makes everything much less stable. So the best practice is to forward your naked domain to a "www" subdomain, and then point the "www" CNAME to your Heroku app.
Heroku goes into detail about this here.

Related

Can't get my custom godaddy domain to link with my heroku app:

My heroku app is not linking to my godaddy custom domain
I've tried changing the cname to host to "www" and the "points to" to the heroku dns target I was given. Still it has not worked. I've also tried putting the url of the heroku app:
https://agile-thicket-51202.herokuapp.com/
I've tried the forwarding settings in godaddy as well but was unsuccessful.
(My custom domain has already been verified on heroku)
This is how it appears on my godaddy dns settings:
CNAME www "herokudnstarget"
Could other dns settings be interfering with this?
While working with cname GoDaddy only allows you to point www subdomain.For naked domain pointing use cloudflare or heroku add-on pointDNS.

GoDaddy domain not pointing to Heroku app

I'm trying to point my GoDaddy domain to Heroku app. I followed the steps given here: https://devcenter.heroku.com/articles/custom-domains#add-a-custom-root-domain but I'm unable to access my Heroku app. Here are my DNS records settings:
Can someone tell me where I'm going wrong?
cname only allow you to point subdomain, so this case you should be able to see www subdomain pointed to Heroku, can you try to remove the A record.
I would recommend using DNS service like DNSimple/Cloudflare or in case you don't want to go out of Heroku you can try pointDNS

DNS Problems with Heroku

I'm having some problems configuring the DNS settings for my custom domain to work correctly on Heroku.
I have set the DNS records as follows:
Host Type Points to
example.com WR www.example.com
www.example.com CNAME example.herokuapp.com
www.example.com.au CNAME example.herokuapp.com
However, the 'www.example.com' domain sometimes fails to load on my computer, as well as my client's phone. It seems rare for this domain to fail (it works fine on everyone else's computers that I've asked), but the fact that it doesn't work on mine and my client's computers is a problem.
However, the '.com.au' domain (and the heroku one) always works. Why is this?
Is there anything wrong with the configuration above? I followed the 'custom domain names' article on heroku to reach this configuration (I don't have much experience with DNS, unfortunately). The DNS provider I am using does not support ANAME or ALIAS so I went with the above config instead.
Thanks. Any help in getting the '.com' domain working on every device would be appreciated.
I'm not really sure, it may be a lot of things, DNS caching and other stuff.
But if you don't have a lot of DNS records, I suggest you use a heroku add-on like PointDNS (https://addons.heroku.com/pointdns) as it supports ALIAS.

Heroku custom domain

Would like to learn how website works.
Purchased a domain name from bigrock domain registrar.
Am used to deploy applications to Heroku for my official websites.
But this is my personal site deployed to Heroku.
But how to connect my domain name to heroku ?
Heroku documentation is not clear to me.
I tried domain forwarding after playing with google search, but my site http://www.prithvibhargav.com/ is still giving me blank page.
Where as the heroku default website address still works
http://afternoon-cove-8287.herokuapp.com/
How to make my domain name to connect to heroku and work ?
There are so many terminoliges people use which is confusing
CName , A address, 301 redirect, domain forwarding
Which one to choose ?
You need to set your DNS to point to your heroku address. You should be able to go into the DNS settings in bigrock (where you registered the domain) and create CName record that will forward from your domain (http://www.prithvibhargav.com) to the heroku address (http://afternoon-cove-8287.herokuapp.com/)

Redirect bought domain from hetzner to heroku application

I have purchased a domain from hetzner. Currently my application is running on my heroku account. My question ist. How to redirect the domain from hertzner to my heroku application. I can only use these records:
I really appreciate your answers, cause I really have no idea where to start!
PS.: I can only use the DNS records because I have only aquired a domain and therefore the panel http://myaccount.hetzner.co.za is not available for me ;(
This Heroku Dev Center article has many answers regarding DNS:
Heroku DevCenter: Custom Domains
In short: you want any apex domain (mydomain.com) to forward to a subdomain (typically www.mydomain.com), and then CNAME the subdomain to your Heroku app.
mydomain FORWARD www.mydomain.com
www.mydomain.com CNAME something.herokuapp.com

Resources