I want my sample RoR heroku app pointed to a custom domain.
Several tutorials said in takes up to 72 hours but 5 days had passed and still I cannot see my app on my custom domain.
What I did:
1. I bought a domain in Godaddy.
2. I worked on on my Heroku Settings:
=== calm-cliffs-51233 Heroku Domain
calm-cliffs-51233.herokuapp.com
=== calm-cliffs-51233 Custom Domains
Domain Name DNS Target
──────────────── ──────────────────────────────
www.budgetan.com www.budgetan.com.herokudns.com
In Godaddy, I tried to change IP address in the A record etc.. but Finally I just deleted everything and left these three:
Type Name Value TTL Actions
CNAME www budgetan.com.herokudns.com 1 Hour Edit
NS # ns47.domaincontrol.com 1 Hour
NS # ns48.domaincontrol.com 1 Hour
Then I waited.
5 days later I still get this error in Google Chrome:
This site can’t be reached
www.budgetan.com’s server DNS address could not be found.
Try running Windows Network Diagnostics.
DNS_PROBE_FINISHED_NXDOMAIN
Related
I bought a myapp.app domain with OVH. I've also bought a Heroku hobby dyno in order to have a secure subdomain for my api (https://www.server.myapp.app instead of https://www.myapp.heroku.app).
In Heroku's dashboard/settings, I've added the domain server.myapp.app and copied the generated DNS target provided by Heroku. It looks like: hello-world-5fghjofz765h.herokudns.com.
Then, I added a CNAME record in OVH's DNS zone panel. The name is server.reapr.app. But when validating the entry, I notice the generated domain has an additional . in the end: server.reapr.app.
Is it normal? Should I enter the same name with a final dot in Heroku too?
Next. I added a CNAME record in my DNS zone panel.
When copy/pasting the DNS target in ovh, ovh claims that this is a relative notation that will point to hello-world-5fghjofz765h.herokudns.com.myapp.app..
They say I can add a . in the end to make this notation absolute and point to hello-world-5fghjofz765h.herokudns.com.. I don't understand what it means.
In any case, the DNS target is not strictly equal to the DNS provided by Heroku. There is either an additional . or a myapp.app. in the end of the url.
Anyway, I've tried both options. In each case, Heroku says they're unable to resolve DNS for server. The final error is: 1 domain failed validation.
How to fix this? I'm paying for a dyno I can't even access.
EDIT:
The ovh DNS Zone. I own the domain www.myapp.app (myapp is a random name for this example, and is hidden by a black rectangle on the images below).
The heroku subdomain settings:
Added custom domain on heroku, the page says "There's nothing here, yet."
Steps done:
Domain is connected and can be accessed (used 'heroku add domain domain.com' to make sure)
Added CNAME record of given dns server.
Waited for 24 hours
Tried this and this
Next time add www to your domain in Heroku (not domain parking provider).
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
Let me keep this as simple as possible. I have looked at a bunch of other posts related to this but haven't found an answer :(. I am hosting my web app on Heroku and using Gandi as my domain provider.
Note: The top answer from this post is what I used as my basis.
A few days ago I set up web forwarding on Gandi so that my mydomain.gg forwards over to www.mydomain.gg. I also set up custom domains in Heroku. It looks like this:
*.mood.gg wildcard.mood.gg.herokudns.com
www.mood.gg www.mydomain.gg.herokudns.com
mood.gg mydomain.gg.herokudns.com
I then went into Gandi and added these to my zone file so it looks like this:
# A 217.70.184.38
* CNAME mydomain.gg.herokudns.com.
www CNAME www.mydomain.gg.herokudns.com.
The A tag is there for the web forwarding where the IP points to a Gandi IP. Heroku changes IP addresses frequently, which is why I use CNAME.
Cool!
This all worked perfectly for 3 days, where I didn't touch my zone file or Heroku app for those 3 days at all.
So here is where the oddness begins. I upgraded my Heroku server to a more expensive plan and pushed some new code to it as well. A few hours later, my root domain mydomain.gg breaks and doesn't forward over to www.mydomain.gg. If I go directly to www.mydomain.gg it works perfectly.
So my question comes down to, where did this break? I never touched my Gandi zone file. All I did was push to my Heroku server and it seemed to break the web forwarding with Gandi. How did pushing to Heorku cause something to mess up with Gandi where all I'm specifying is a Heroku DNS that didn't change at all?
Another thing is, Gandi says they don't support naked domain CNAMEs which is why I use web forwarding. But then whats the point of this line in my zone file:
* CNAME mood.gg.herokudns.com.
Any help would be appreciated!
EDIT2: Waiting to see if my changes were successful.
EDIT: I reinstalled everything using the command line Zerigo install command (the original question was for manual setup). THe problem now: the custom domains I set up do not work properly. Visiting the custom domain simply returns an error in Chrome: "Oops! Google Chrome could not find www.myapp.com" even though the custom domain I added was "www.myapp.com?
I've been trying to set up a custom domain on my Cedar Heroku app by following instructions at https://devcenter.heroku.com/articles/custom-domains and https://devcenter.heroku.com/articles/zerigo_dns.
In the tutorial for setting up a domain on Zerigo, one of the instructions for adding a host is to add the IP address of the webserver. How do I go about finding this information? I'm having trouble finding any resource that helps me with this.
Am I supposed to be adding the IP address of my app at _.herokuapp.com? When I try to do a look up of this address, I never get a consistent address (probably because of Heroku's many servers). Any help is appreciated.
Linking Zerigo and Heroku is a three step process.
(1) Use the heroku addons:add zerigo_dns:basic command or add Zerio manually through the add-ons page on your Heroku app.
(2) With your registrar or hosting provider to have the domain resolve properly. For Zerigo add all nameservers:
a.ns.zerigo.net
b.ns.zerigo.net
e.ns.zerigo.net
c.ns.zerigo.net
d.ns.zerigo.net
(3) And this is the step I think you may be missing. Log into Zerigo either through your Heroku configuration panel under "add-ons" or log into Zerigo directly. Select the DNS tab next to Account and Servers. On the left panel select the domain you have resolving to Zerigo: this domain will appear. Within this domain under "Nameservers" next to "Hosts" click "Add Snippet". Add both the recommended snippets proxy.heroku.com and the redirect record that excludes the www.
Wait the TTL period (usually 15 minutes) and your domains will work as expected.