Heroku Godaddy naked domain [closed] - heroku

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I have a Heroku app and I've add a CNAME (www to herokuapp) to redirect it from GoDaddy to Heroku. Now I'm trying to manage also the naked domain.
This is from Heroku documentation.
Naked domains (also known as bare domains or apex domains, for example mydomain.com) must use DNS A-records. To setup your root domain, add separate A records for each of the following addresses using your DNS management tool:
75.101.163.44
75.101.145.87
174.129.212.2
Check that your DNS is configured correctly with the “host” command:
$ host example.com
example.com has address 75.101.163.44
example.com has address 75.101.145.87
example.com has address 174.129.212.2
I've also activated the forwarding from the GoDaddy main menu.
Ok, if I try host example.com with my domain, all is ok.
But, when I try with the browser, I get this:
Heroku | No such app There is no app configured at that hostname.
Perhaps the app owner has renamed it, or you mistyped the URL
I tried also with the command heroku domains:add yourdomain.com
but this create a second instance of my app, it doesn't redirect it to the full domain www

Heroku highly advises against using A-records to point domains at cloud apps. Using A-records increases the chance of instability for DNS resolution. Heroku goes into details here.
Instead, you should redirect your naked domain to the 'www' subdomain. You can refer to this SO thread for more details on how to set that up on GoDaddy.

Related

How to assign domain name to my Golang server? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
This might be a very basic question but I've been stucked for 2 days
I've bought the domain name AAA.xyz on Namecheap and I have my Golang web server running on my port :8095 (I've redirected my ports on my router so my server is accessible from everywhere with my public IP http://93.6.XXX.YYY:8095/)
How do I make my Namecheap domain name point to my IP adress with the right port so when I enter AAA.xyz on my browser I get response from my API ?
You have to edit your namecheap DNS settings to add an A Record, which will point to your server IP. That's enough to divert all traffic to your domain, to your server.
Although, unless it's not a production setup, it'd be better to let a reverse proxy server like nginx handle the incoming http traffic. Then you won't have to expose your port to the outside world either. (Unless you want to).
Install nginx. Add a proxy pass to your nginx config file which will route all requests coming to port 8095 to your application at 127.0.0.1:8095.
This will also help you when you have multiple go apps running on your server on different ports. You can use different URLs to point to different apps.
e.g. https://yourdomain.com/app1 will go to 127.0.0.1:8095
and https://yourdomain.com/app2 will go to 127.0.0.1:8096
Bonus: You can use Letsencrypt to provide your nginx server with an HTTPS certificate for free and then all communication with your applications will be happening through port 443 on HTTPS, without configuring every app to handle the certificate.
Also, open ports 80 and 443 in your firewall.
If you need any help with a specific step. I'll expand on that.

Connect Heroku Application with my GoDaddy Domain [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 8 years ago.
Improve this question
I've set up a application on Heroku and have also purchased a domain from GoDaddy.
I searched on Google how to connect my domain to Heroku and I also read the Heroku documentation but I am not able to connect it with my domain.
I am a beginner and have found I need to add cname or domain may be but I don't know how to do it. How can I connect my domain with the heroku app? I need to add DNS on my domain but how to add it?
Please let me know very very basic and detail step by step procedure to connect my domain with the Heroku app please.
Heroku provides detailed instructions in the Custom Domains support page.
Possible duplicate.. As per the user request we do ...
There are 2 steps you need to perform,
Add the custom domains addon and add the domain your going to use, eg www.mywebsite.com to your application, Running below command to perform this task
heroku domains:add www.example.com
Go to your domain registrar control panel and set www.mywebsite.com to be a CNAME entry to yourapp.herokuapp.com assuming you are using the CEDAR stack.
just put www in value and target is your heroku app like yourname.herokuapp.com

How to access the subdomain of an IP address in the browser? [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 months ago.
Improve this question
To get to the IP address of an example website, you just visit
subdomain.example.com
However, if I try to visit
subdomain.2.1.33.111 (example ip)
Firefox returns an error.
Why?
All browsers will return an error for this. The reason is that subdomains are part of the DNS (Domain Name Service) system, where IP addresses are related to the underlying IP protocol.
The best way to think of this relationship is that domains (including subdomains) are human-readable labels which DNS then allows you to point to IP addresses. It would not be very catchy to have an IP address as your website on a TV ad, for example.
There is much more detail on DNS and IP addresses if you want to delve into more detail than this.
IP addresses don't support subdomains. If your goal is to serve several application on server without an assigned domain, the best way is to use ports:
2.1.33.111:8080
Some ports may already be in use or blocked for security reasons. If you need a list of some recommended ports, you could try using the same ones that Cloudflare supports.
HTTP:
80
8080
8880
2052
2082
2086
2095
HTTPS:
443
2053
2083
2087
2096
8443
This isn't possible via firefox. However a work around is to edit your OS hosts file see: wikipedia.
Create or edit and add a line like:
192.168.1.100 subdomain.example.com
Remember to remove the line when you're done!
You can't mix a subdomain (DNS name) with an IP (no DNS name)
Try to use /etc/hosts file. For instance:
# IP Hotsname
2.1.33.111 subdomain.example.com
For Firefox It's ok but Chrome resolves names in a fancy way.
A hostname is a domain (or subdomain) name that has at least one associated IP address.
The associated IP address to a domain name might differ for subdomains.
You can get the associated IP address of a domain (or subdomain) with nslookup.
Try nslookup example.com vs. nslookup subdomain.example.com to see the difference.
If firefox (or other browsers) you can either enter the hostname (e.g. example.com or subdomain.example.com) or the IP address (e.g. 11.22.33.44).

What is Paas, Hosting and SaaS [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
What exactly are Paas, Hosting and SaaS ?
Wikipedia to the rescue.
PaaS - Platform as a service
http://en.wikipedia.org/wiki/Platform_as_a_service
SaaS - Software as a service
http://en.wikipedia.org/wiki/Software_as_a_service
Hosting
http://en.wikipedia.org/wiki/Internet_hosting_service
Heroku is not a DNS registrar. You can however buy domains elsewhere, such as Godaddy and add them to your Heroku app. By default you are given a free my-app-name.herokuapp.com domain. After you have purchased a domain, to "point it at heroku", you'll need to add a CNAME record which points to your my-app-name.herokuapp.com domain.
When you purchase a domain, you'll need to host the records on a DNS server. Some registrars provide free DNS hosting, others charge extra for it. You can purchase DNS hosting from Amazon Route 53 for $0.50 per domain / month. To use Amazon, you would need to change the domain's name servers to Amazon's.
Domain > Name Server > Hosting provider / PaaS.
One limitation of using Heroku is that you cant use apex domains. You must use a subdomain eg. www.example.com instead of just example.com. This is a DNS limitation - you can't have CNAME records on the apex. It must be an A record. Amazon Route 53 is one of the few providers that allow virtual CNAME records on the apex. It's basically an A record that is frequently updated. Each time your Heroku app sleeps due to inactivity, you may be given a new ip address when it restarts.
Further reading on DNS on Wikipedia.
ps: Happy New Year!

One IP address and two subdomains possible on IIS7? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Background
I'm using a single server in my home network that runs Windows SBS 2011. It services Active Directory, IIS7 and DNS services.
Currently I can change how my domain (mydomain.com) looks on the Internet using the "Default Web Site" website. However when I create additional websites (blog.mydomain.com) in IIS Manager, they are not showing up on the Internet.
Question 1: Is it possible to set up two subdomains with 1 IP address in Windows IIS7?
Can I make it so www.mydomain.com and blog.mydomain.com are both public on the Internet?
Question 2: How do I go about setting up the subdomain blog.mydomain.com?
In IIS Manager, I'm using Sites > Default Web Site for www.mydomain.com files. This is working for me and I can create and set up index.html and build the website.
For the subdomain, after I add a website, what settings do I need to change:
- What settings do I need to have for the website
- What records do I need on the server DNS
- What records do I need on the domain DNS
- What other settings do I need to change?
Yes, this can be accomplished.
You use the "Bindings..." option In IIS7 for configuring the domain/subdomain for each website.
This is a way you could set it up:
Make sure you have two websites in IIS7. One is set to the root of your website directory, another one set to the root directory of your blog platform.
Your website has the binding configured like this:
www.mydomain.com using Port 80
The blog site has the binding configured like this:
blog.mydomain.com using Port 80
Q1: yes
Q2: Create two websites, ignore the default web site. One for www and the other for blog. On the new website screen specify the Host Name accordingly, i.e. www.mydomain.com for the first site and blog.mydomain.com for the second. Keep the port 80 for both. Later you can change these settings in the website Bindings screen.
What this basically does it associates names with different websites so when requests come to your server on the same IP IIS knows to which website to dispatch the request.
The default website in IIS, because it has no Host Name, will handle all the requests that are neither for www or blog subdomains.

Resources