Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you get an existing domain you own to point to Azure's servers?

By default, the naming conventions of Azure websites/webapps are somesubdomain.cloudapp.net and somesubdomain.azurewebsites.net. If I have an existing website that I have currently hosted through, say GoDaddy, and the website is www.mysite.com, how can I tell the registrar (DNS) to look at Azure's servers for the website content (I have experience in changing the nameservers to point to a particular web hosting company's nameservers, but it appears that there isn't a such thing with Azure).

Ultimately what I want to do is go to www.mysite.com and have the content hosted on Azure, running on Azure's VMs. Is the only way to mess with the CNAME, A, etc. properties of the DNS?

I have a VM on Azure that I want to use to host my websites. This is the platform that I will be using. I'm not using an Azure "website" or a "cloud service".

like image 865
Mike Marks Avatar asked Jul 16 '13 19:07

Mike Marks


People also ask

How do I add an existing domain to Azure?

Sign in to the Azure portal using a Global administrator account for the directory. Search for and select Azure Active Directory from any page. Then select Custom domain names > Add custom domain. In Custom domain name, enter your organization's new name, in this example, contoso.com.


2 Answers

Yes, the only way to get this working as you describe it is to fiddle with the DNS, with a CNAME and A records.

A good description of how this is done can be found here: http://www.windowsazure.com/en-us/develop/net/common-tasks/custom-dns/

like image 152
Fore Avatar answered Oct 07 '22 19:10

Fore


There is an official documentation, relatively easy to find with a simple internet search:

  • How to use custom domain with Cloud Service and Storage Account
  • How to use custom domain with Azure Web Sites

EDIT

One thing good to remember is that a Windows Azure Virtual Machine (IaaS) runs in a Cloud Service. Meaning that for each VM, or set of VMs you have a cloud service created (i.e. mywhateverVM.cloudapp.net). This cloud service is implicitly created when you use the portal wizard to create the VM. Or explicitly (you create it) when you create VMs with PowerShell.

So the "How to use custom domain with Cloud Service" applies also for the Azure VMs with no change at all.

like image 24
astaykov Avatar answered Oct 07 '22 19:10

astaykov