This can be done thru Zerigo. But can't i find the nameservers myself from somewhere and update it at the accound where i purchased my domain from ?
Heroku doesn't provide DNS services therefore there are no name servers.
You use your domain name registrars control panel to point your DNS records at your Heroku application. Typically this is a CNAME record pointing at the .herokuapp.com entry. So www.mydomain.com would be a CNAME to myapp.herokuapp.com.
My Domain Name Manager (Brinkster) required name servers, and did not support CNAME records. So I needed to do the following:
Install the Zerigo DNS add-on for my Heroku app.
Add the domain name in the Settings tab of my Heroku app.
In the Resources tab of my Heroku app. click "Zerigo DNS" under "Add-ons".
In the Zerigo management console, click the "Nameservers" tab.
Copy the name servers into the form in Brinkster's Domain Manager control panel.
A bit late to the party, but this is still a problem with wanting to use the Heroku app for the root domain.
I migrated my DNS settings to CloudFlare, as they offer to point the root domain (example.com) as well as aliases (www.example.com) to a CNAME. This allows one to use the Heroku app as the root domain without running into the headache of having to point the root domain to an IP address. You can then install an SSL certificate for the root domain and (typically) the www.example.com alias as well.
Related
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
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
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.
After reading about how a my-app.herokuapp.com cannot be referenced by an A Record by the simple fact that Heroku has a dynamic implementation of its servers, I chanced upon articles which extolled the uses of ALIAS functions in DNS services like Zerigo and DNsimple as a workaround for this issue.
This SO Post explains this problem has been solved, Point top level domain to heroku app
However I do not follow how exactly to implement the solution.
Assuming I have a functional ALIAS setup in Zerigo which points to my my-app.herokuapp.com how do I then have my current webhost point to this ALIAS for the root domain?
Here is my Hostgator Control Panel which shows how the root domain (fls.net) is directed to a particular server via an A Record. I would like to subistute that A Record with my Zerigo ALIAS. How do I do that? Do I change my A Record to a CName? and then just put the ALIAS name in?
Note:
This post: How to redirect a root (naked) domain to www - heroku and zerigo seemed to have the same issue, except I don't understand why he calls the solution of using an ALIAS as "temporary". Why would it be a temporary solution?
You have to change your domain's name servers to point to Zerigo's name servers. You do this through your HostGator config. Zerigo has an article on the name servers that your domain should use. This article from HostGator explains how to change your domain's name servers. Basically, you want to log in to the HostGator portal and change the name server's to the one's listed in Zerigo's article.
Zerigo can handle the DNS for your domains, but only if DNS resolvers know to look at Zerigo instead of HostGator. Right now, when a DNS resolver (such as the one used by your computer's operating system) looks up the IP address to which yourdomain.com resolves, it first looks for the name servers that handle yourdomain.com, and then queries them. If the name servers point to HostGator, it doesn't matter what records you put in Zerigo, because HostGator will be queried for the domain's associated IP address. If you want Zerigo to handle the DNS resolution, you have to point the name servers to those managed by Zerigo instead.
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/)