Use existing sub-domain for new hosting plan - dns

Suppose I have a domain test.com in the bluehost server.
Now I want to purchase a new hosting plan in dreamhost.
While purchasing the plan, I want to have domain name for new server as server2.test.com or test.com/server2.
What will I need to do for this?

You need to log into the dns manager for your account and configure a CNAME or DNAME entry that points server2.test.com to the ip address (or domain name) for your server at dreamhost. I use godaddy.com for my domain names and it's very easy there.
A CNAME is like a symbolic link or alias for dns.
For more information, see:
http://en.wikipedia.org/wiki/Cname

Related

WWW domain on azure

I am trying to configure a www domain on azure. I want to have website under this domain. My domain is "legia.fitness". I have created the DNS zone as follows:
On this picture you see 4 DNS servers. I have delegated my domain that I bought at home.pl to those servers:
And this doesn't work. When I try to browse legia.fitness I get "ERR_NAME_NOT_RESOLVED" error. What am I doing wrong?
Your Azure DNS zone does not have any A or CNAME records for www or # so the name cannot be resolved to an IP address.
Add a new A record with the label # set to the IP address of your Azure website, and another A record with the label www also set to the same IP address.
Alternatively, create CNAME records (both # and www) and set them to your Azure Website's name (e.g. yourwebsite.azurewebsites.net). CNAME records are aliases of existing A or CNAME records, but are slower to resolve which is why I prefer A records.
You haven't directed the domain anywhere yet.
You have a DNS zone that works. I can see the SOA records on Dig web interface.
Now you have to add CNAME/A records to the DNS zone to direct the traffic to where you want it.
Here is a guide for Azure Web Apps: https://learn.microsoft.com/en-us/azure/app-service-web/web-sites-custom-domain-name
If you use something else, you'll need to find its guide.

Domain registrar's DNS records vs web hosting DNS records

I bought a domain from Google Domains. I have an A record (on Google Domains DNS control panel) pointed to my server's IP. I had a www CNAME record pointed to mydomain.tld. To experiment with my hosting panel's DNS (I have VestaCP) I deleted the www record from Google Domains DNS panel. There was already a www A record on VestaCP DNS panel. I deleted that and added a www CNAME record pointing to mydomain.tld. And suddenly my www.mydomain.tld stopped resolving. I also tried adding a test A record but I couldn't ping `test.mydomain.tld'.
So, how does hosting panel's DNS work? Each time I add a new website (be it a sub domain or a new domain itself) VestaCP creates certain DNS records. Are these DNS records supposed to override the ones in domain registrar's DNS panel or vice versa? What are DNS records in VestaCP DNS are there for?
When you have your hosting and domain in one single server or with one provider, your domain DNS will be with your domain itself. You just need to point the A record to hosting IP. Your Nameservers will be the default.
If you have your domain with one hosting provider and domain with other then you need to change your domain Nameservers to hosting nameservers. Then your DNS will migrate to your hosting account. The changes you may do in your domain panel will not affect. You can change your DNS settings from your hosting account only.
Hope it helps.

Setting up a private domain for Swisscom Cloudfoundry

most domain providers don’t allow setting a CNAME record for a main domain. It’s usually only possible to set CNAME records for subdomains.
So now I’m wondering if it would be possible to set an A record instead, pointing to scapp.io’s IP address. I tried it yesterday and it seems to work great but I’m worried that IP address might not be stable.
Any ideas whether setting an A record to 194.209.246.110 is a valid option for configuring a "naked" domain?
We don't recommend A record to IP address. The IP addresses may change without prior announcement.
See docs.developer.swisscom.com -> DNS for Domains for other options than CNAME.
Configuring DNS for Your Registered Root Domain
To use your root domain (for example, example.com) for apps on App
Cloud you can either use custom DNS record types like ALIAS and ANAME,
if your DNS provider offers them, or subdomain redirection.
Note: Root domains are also called zone apex domains.
If your DNS provider supports using an ALIAS or ANAME record,
configure your root domain with your DNS provider to point at a shared
domain in App Cloud.
What domain provider do you use?

Link a shared webhosting to an external domain

I'm confusing on something!
If I map a domain with 1&1 with a shedhosting with bluehost. Do this means that I can manage my domain from bluehost ?
in other words can I manage my domain with 1a1 (emails, subdomains...) from my bluehost without transferring it.
Thanks,
Of course you can. By the default, your domain nameservers will use registrar nameservers, in your case 1&1 service. Simply login to your 1&1 account, then change your domain nameservers to bluehost nameservers. You can find your hosting nameservers in your hosting cPanel (I assume that bluehost use cPanel). Or, if you find a trouble finding the nameservers, simply contact bluehost customer service.
After change the nameservers, then check it first to make sure the changes was take effect, use http://who.is service. Then go to your bluehost cPanel, you can manage domain name directly from there, add/remove subdomain, change dns record (A Record, CNAME, etc..) and also your mail will functioned (I assume that bluehost give you an email hosting service in your hosting package).
NOTE: You don't need to transfer your domain to bluehost, you can have your domain registrar different from your hosting provider. The only thing you need to do just pointing nameservers to your hosting nameservers.
REMEMBER: All your domain record in 1&1 account will not functioned, you need to move it to your bluehost cPanel. All A Record, CNAME, etc in your 1&1 panel must be re-written in your bluehost cPanel.
I use this method right now, and everything is ok!

Delegation of sub-domain

I have a domain xyz.com whose registrar and web host are different. I have pointed the registrars name server entries to the web hosts ns01.host.com, etc.
On the web host, I have now created sub.xyz.com and want to delegate this domain to an external name server. Of course this is not possible straight off since the web host only allows IP Addresses against Custom A records.
What are my options to delegate sub.xyz.com to ns01.externalnameserver.com?
Instead of an A record on your registrar, you may use CNAME record to point the subdomain to an external address.

Resources