For example, let's say I have domain.com. Can I configure http://subdomain1.domain.com to be hosted on http://www.squarespace.com and http://subdomain2.domain.com to be hosted on http://www.discountasp.net/?
Yes. Set the A record of subdomain1 to point to the IP of your site at squarespace.com and the A record for subdomain2 to point to the IP being hosted at discountasp.net.
Yes - either use a CNAME record and point it to each of those domains, or an A record for the full domain (subdomain1.domain.com) pointed at the IP address you need.
Related
I have domain on Bigrock and i want to point my subdomain on different server of hostinger hosting,
how i can be possible ?
you need to create either A record (for IP address destination) or CNAME record (domain name destination).
I have a website called example.com.
I want www.example.com to point to my blog (on WordPress), but I want app.example.com to point to my app (on Heroku).
I am registered with Godaddy (could be any service though).
Is it possible to have one domain go to two completely different places?
Yes that is, just create two dns records for example:
www.example.com CNAME hosting.example.com
app.example.com A 109.23.23.45
cheers
If I ping my OpenShift application I see some IP like this
ec2-11-22-33-44.compute-1.amazonaws.com [11.22.33.44]
Can I be sure that my IP is 11.22.33.44 and I can use it for A record in DNS settings?
In which cases this IP is changed ?
Never seen this inforamtion. All articles claim that only CNAME may work.
You should never use an A record to point to your OpenShift application with an external domain. That IP address can change at any time for outage or maintenance reasons. You should always use a CNAME to point your domain name to your application url of the format app-domain.rhcloud.com
Just found an answer.
This was not just my own IP.
Several sites have this IP too.
http://www.bing.com/search?q=IP:11.22.33.44
What is the difference between a CNAME and a Subdomain?
I understand that the a cname (the left side of a domain) can point to the domain, so you can two different urls point to the same address, ie.
ex1.mydomain.com - if setup as a CNAME can return the IP of mydomain.com
If ex1.mydomain.com is setup as a subdomain, does it have a different IP?
Another question is what should the ideal setup be in this situation:
I have IP1:80 for a web app
I have IP2:80 for another app
Can I point both of these IPs to the same A record, with perhaps a different cname or subdomain?
Thanks for any help?
CNAME is agnostic about name topology - it simply provides a way to alias a lookup for one name into a lookup for another name. So it may be in a subdomain context, or not.
Your second question doesn't make any sense to me. An A record maps from a domain name to (a single) IP address. So normally, in this situation, you'd have two domain names with an A record for each.
Could someone explain the difference between an A Record and a CNAME, and what I should be telling my users to do if I am building a site that allows for custom domains to point to a subdomain on my hosted service?
A record... www.rabbot.com -> 123.123.123.123 (ie. an actual IP address)
CNAME record... www.philip.com -> www.rabbot.com (ie. more like an alias)
Your life will be much simpler if you have your users to use a CNAME as they can point their domains to yours. Then if you need to update your server's IP address you can simply update the single A record you have instead of making all your users update their DNS entries.
This is true regardless of what web framework you are using...