changing heroku app name to custom domain issue - heroku

I have read the article on heroku website for setting custom customs(https://devcenter.heroku.com/articles/custom-domains)
I'am using namecheap domain service, here's a picture of how the cname record looks:
pic1
Like the heroku custom domain article says I have to do the following:
heroku domains:add www.ubbytech.com -- which is the name of my domain i paid for
I entered the dns target in my advanced dns settings on namecheap dashboard.
Here's a picture of my terminal display output:
pic2
What I'am doing wrong. I followed the article thoroughly; and I've even tried doing it via heroku account settings. Sometimes it would work for 10 seconds then stop working.

There's something not quite right with your DNS. Take a look at subsequent dig commands to inspect the records:
→ dig www.ubbytech.com
www.ubbytech.com. 1799 IN CNAME parkingpage.namecheap.com.
parkingpage.namecheap.com. 29 IN A 198.54.117.215
parkingpage.namecheap.com. 29 IN A 198.54.117.216
parkingpage.namecheap.com. 29 IN A 198.54.117.212
→ dig www.ubbytech.com
www.ubbytech.com. 59 IN CNAME www.ubbytech.com.herokudns.com.
www.ubbytech.com.herokudns.com. 59 IN A 54.221.218.81
www.ubbytech.com.herokudns.com. 59 IN A 54.235.135.158
www.ubbytech.com.herokudns.com. 59 IN A 54.243.85.55
www.ubbytech.com.herokudns.com. 59 IN A 75.101.145.225
www.ubbytech.com.herokudns.com. 59 IN A 54.243.154.49
www.ubbytech.com.herokudns.com. 59 IN A 107.21.206.81
www.ubbytech.com.herokudns.com. 59 IN A 54.243.91.166
www.ubbytech.com.herokudns.com. 59 IN A 54.235.212.238
so the first response returns a namecheap address which the second returns a herokudns.com address. This usually means you've misconfigured the DNS servers for your domain. Looking at the WhoIs data for your app I can see
Name Server: dns1.registrar-servers.com
Name Server: dns2.registrar-servers.com
which looks ok - that leads me to think that one of those servers has the new record and the other is returning the old one...either way, it's a DNS issue and a question for namecheap.

Related

Homestead on Chrome 62

I have set in my homestead yaml file my mapped url for my local machine to view my Homestead website. However it does not connect with chrome 62 but works with other browsers. Chrome 62 gives a connection refused error.
Can anyone suggest why?
That's because the .app and .dev domains are added to the HSTS list.
You can visit the error page, type "badidea" on your keyboard and then de site will load.

Setting up HTTPS DNS with Namecheap and Heroku

I know there have been very similar questions asked but both companies changed over time and it's been hard to get a full working solution.
I'd like to have a naked subdomain (mysite.io) but if I have to have www.mysite.io, that's fine too.
So on the heroku dashboard I have :
DOMAIN NAME : mysite.io DNS TARGET : mysite.io.herokudns.com
DOMAIN NAME : www.mysite.io DNS TARGET www.mysite.io.herokudns.com
I know I should probably only have one of those active but I'm not sure which...
Then, on the NameCheap dashboard, I have :
EDIT: I have read what seemed like a good answer, here's what I changed, awaiting to see if it's gonna work.
CNAME Record - www - www.mysite.io.herokudns.com
CNAME Record - # - mysite.io.herokudns.com
And no redirect
I will update if it works
UPDATE :
Using two CNAME records indeed worked fine, except that users can still connect in HTTP and not be redirected to HTTPS. I probably need to add a redirect for that.
If anyone is still having problems and your website opens without HTTPS. There is a line of code in rails applications which you should uncomment. Go to config/environments/production.rb In this file you will find a commented line "config.force_ssl = true". Uncomment this line and your application will always open up with https
Combination of two answers above will solve the problem for Rails applications:
Go to Namecheap and add the two following CNAME's:
Type: CNAME
Host: #
Value: www.yourdomain.com.herokudns.com
TTL: Automatic
Type: CNAME
Host: www
Value: www.yourdomain.com.herokudns.com
TTL: Automatic
And then follow second answer: "Go to config/environments/production.rb In this file you will find a commented line "config.force_ssl = true"."
That should do the trick.

Domain host records for github and namecheap

I have a custom domain with namecheap that I want to redirect to my github page which is at myuser.github.io.
My host records at namecheap have '#' and 'www' A records with an IP of 192.30.252.153. At the root of my github page (in the repo) I have a cname record with mydomain.com. in the file. When I browse to my custom domain in a web browser I get a message that the github page cannot be found.
Ideas? I found a few blog posts about setup, but none of the options worked for me.
Namecheap has changed things. This is what I did:
This is what is working for me.
In my pages repository, the CNAME is just:
phillipamann.com
I hope that helps.
To support the improved Github Pages, set your records up like this:
HOST NAME IP ADDRESS RECORD TYPE TTL
# 192.30.252.153 A (Address) 1800
www <username>.github.io CNAME (Alias) 1800
Then, fill out one row under SUB-DOMAIN SETTINGS:
HOST NAME IP ADDRESS RECORD TYPE TTL
# 192.30.252.154 A (Address) 1800
More information here: http://davidensinger.com/2013/03/setting-the-dns-for-github-pages-on-namecheap/
What worked for me was the following...
Hostname IP Record Type TTL
# 204.232.175.78 A(Address) 1800
www 204.232.175.78 A(Address) 1800

Custom domain does not redirect to my heroku app

Last week, I delete and re-create my heroku instance (I now use Europe instance).
After this change, my domain name fail, I try to simplify the config (inspired by this blog post, but it still failing.
My domain name is registered on Gandi. There my config :
# 10800 IN A 174.129.212.2
# 10800 IN A 75.101.145.87
# 10800 IN A 75.101.163.44
www 10800 IN CNAME dartf.herokuapp.com
And Heroku domain name setting :
dartf.herokuapp.com
dar.tf
www.dar.tf
dartf.herokuapp.com is ok but, not my domain name :
2 problems :
dar.tf says the heroku app does not exist
www.dar.tf says the domain name is unknow
Does anybody know what is wrong ?
You can't use IP addresses on Heroku anymore, certainly never in the Europe region. You need to use a CNAME to dartf.herokuapp.com - if you use something like DNSSimple for DNS management you can use an ALIAS record which will let you do this for your dar.tf domain.

How to expose heroku app through domain

I have heroku app available at https://myapp.herokuapp.com (I am using SSL endpoint with self signed cert for now)
I have domain mydomain.md also available at https://mydomain.md - with signed cert.
I want to access my heroku app through this domain.
What I have to do to make it work? What I have to set on heroku and on my domain admin panel? I have never done anything with domains and I have no idea what is CNAME/APEX/ALIAS and I dont know what is the type of my domain.
I am trying to make it work... I added subdomain in admin panel: api.mydomain.md.
And I did: heroku domain:add api.mydomain.md
And now I am confused - is it custom domain or it is root domain or what?
I have to add CNAME record in DNS records of mydomain.md or api.mydomain.md?
I tried to add CNAME record in both but it doesnt work...
What should be name of CNAME record - it must be 'www' or it may be anything?
when I type api.mydomain.md in browser it just shows 'under construction' page
you need to point your domain to your heroku app.
here is a super simple documentation about that:
https://devcenter.heroku.com/articles/custom-domains
The CNAME approached has never worked for me either, but this does...
Edit your domain's DNS Zone File
Create the following 3 A (host) records...
First record...
Host = #
Points To = 75.101.145.87
TTL = whatever you wish (ex. 30 mins)
Second record...
Host = #
Points To = 75.101.163.44
TTL = whatever you wish (ex. 30 mins)
Third record...
Host = #
Points To = 174.129.212.2
TTL = whatever you wish (ex. 30 mins)
In the end it should look something like this screenshot. Hope this helps :)

Resources