Heroku Custom Domain Not Found (404) - heroku

I want an application hosted one heroku to be reachable through the api subdomain.
The issue is that when i reach the website, I get a Not Found error message. Calling the url has no impact on the logs so I know the application is not reached.
By reading other issues on stack overflow, I can see that many people did not properly add the custom subdomain but I don't think that's the issue here. I created the subdomain through heroku's web interface.
If I run this in my terminal
$ heroku domains -a myapp
I get the following result
=== stickyhabitsapi Heroku Domain
myapp.herokuapp.com
=== stickyhabitsapi Custom Domains
Domain Name DNS Record Type DNS Target
api.stickyhabits.app CNAME mydnstarget
The DNS is managed by netlify. With their interface, I created a CNAME pointing to the DNS target supplied by heroku. Any Idea what might have gone wrong ?

Related

DNS_PROBE_FINISHED_NXDOMAIN error on Heroku

I have deployed an app on Heroku, and everything is going great when the app is being accessed from the herokuapp.com domain. I tried adding a custom domain and have followed the instructions from the documentation, but unfortunately, I encounter a DNS_PROBE_FINISHED_NXDOMAIN error when trying to access the app from my custom domain.
Some articles pointed out how Heroku requires the usage of ALIAS ANAME or FLATTENING records, which may not be available in DNS providers. I am using a local DNS provider where Name Server configuration is not directly accessible, and only the DNS provider admin can configure it on my request, so I am unable to check the CNAME Records and such (probably because I use .id domain, which I believe to have a somewhat specific configuration due to its affiliation with the country Indonesia, could be wrong though).
For my Name Server, because my DNS Provider requires at least two different name servers, I registered the domains for my Heroku app (from the Heroku settings dashboard > add domain and from the CLI) as follows:
my-domain.id
*.my-domain.id
www.my-domain.id
Is there anything I can do to fix this? Any help would be highly appreciated! Thank you!
EDIT:
I have just been informed by my DNS provider admin that the name servers I used, which I got from Heroku ([haiku].herokudns.com) does not have IP address. Is there anything I did wrong on the configuration?
As it turns out I managed to find my own mistake! It turns out that I provided the DNS Target as Name Server to my provider, which is totally not the same thing. What solved my problem was simply asking the provider to register a CNAME with the DNS target from Heroku as the value.
Be sure to provide the correct DNS Target for the domains as the DNS Target produced for registering root domains like your-domain.com will be different from the DNS Target produced for registering subdomains like www.your-domain.com or when using wildcard tag (*.your-domain.com). Also, note that Heroku doesn't recommend the usage of A Record for root domains, so be sure that your DNS Provider supports the record types needed as this Heroku article suggests.
Thank you #Ruurtjan Pul for getting in touch! Hope this helps!

Not able to redirect domain in Heroku (DNS)

I'm having hard times trying to redirect a custom domain on Heroku, have you guys had the same problem?
Configured custom domain on Heroku (already tried different variation):
The server asks for Server Name, so I add the only thing Heroku returns as the DNS:
Below there are two domains, the first says "servfail" (the current app domain), the second "nxdomain", which I've just bought it's fine.
Any advices? Should I deploy on another server? Thanks for the help!
You need to update the DNS servers of your domain fariba.cl to fariba.cl.herokudns.com at the domain registrar's end (from where you purchased the domain)
After that it will work fine.
For those facing DNS redirecting problems in Heroku, I suggest this Add-on that you can add to your app in Heroku (for free): PointDNS
With it you can get many types of adresses, including IP and/or n1.server n2.server and so on, in which you can add the address to your domain settings.

Configure CNAME for a heroku app with subdomains

Currently i have an app on Heroku with a wildcard subdomain working like this:
client1.myapp.com, client2.myapp.com, ...
This is working fine.
Then, i'd like that each client can access this apps using their own personal domains. So, testing this on my personal domain, i would like to configure test.mydomain.com like this:
CNAME test --- client1.myapp.com
But, this is not working yet. I keep getting the heroku error 'No such app, There's nothing here, yet.'.
Not sure what i am missing. Is it a problem related to my actual Laravel app? Heroku config? DNS?
Thanks in advance for any help.
Assuming your application will provide an hostname for each client (actually, it would probably be preferable to have a single hostname as in any case it looks like they will all point to the same Heroku app), then you have to complete all these tasks in order to make it work:
Add the subdomain client1.myapp.com as domain attached to the Heroku app
Configure the DNS record for client1.myapp.com
Ensure client1.myapp.com resolves (dig client1.myapp.com)
Add the customer subdomain/domain to your Heroku app, otherwise Heroku will reject routing the requests for that domain
Configure the DNS record for the customer subdomain/domain to CNAME client1.myapp.com
Ensure the customer subdomain/domain resolves
According to your issue description, I assume you probably did not configure the customer subdomain/domain as domain to your Heroku app.

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/)

heroku zerigo dns - www.xxx.in working but xxx.in sometimes giving application error (sometimes working)

I am custom domain for my heroku app using zerigo dns.
www.domain.in is working fine.
domain.com should redirect to www.domain.in sometimes and sometimes giving application error.
Records in zerigo dns :
1) type: redirect, domain.in, http://www.domain.in
2) www.domain.in, cname, xxx.herokuapp.com
another 3 A type records
I think these are correct thats why sometimes it is working, but sometimes giving application error, as of now thinking that it is zerigo bug.
Related question I found - Root domain is not working properly
This setup should work on three conditions:
Your root DNS has A records pointing to Heroku's designated routing IPs
You have added your naked domain to your application (heroku domains:add example.com)
Your application supports your naked domain
Check all these points, a problem in each one can cause things not to work.
If you are redirecting on the DNS/host provider level from the naked domain to www. then none of this is needed, and you have a configuration problem with your host which is out of scope for this question.

Resources