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

16,231

Solution 1

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/

Solution 2

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

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.

Share:
16,231
Mike Marks
Author by

Mike Marks

My name is Mike and I work for a leading marketing cloud provider, headquartered in Indianapolis, but I work remote in Oklahoma. My experience lies in: ASP.NET C# MVC (3, 4, 5) WebAPI (1, 2) HTML JavaScript/jQuery (not an expert by any means) JSON MSSQL

Updated on June 11, 2022

Comments

  • Mike Marks
    Mike Marks about 2 years

    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".

    • Sam Hobbs
      Sam Hobbs about 8 years
      See Azure DNS. Apparently it was not available when this question was asked.
  • Mike Marks
    Mike Marks almost 11 years
    I forgot to mention, this is on an Azure VM, not a website or cloud service. I created a VM, installed IIS, and I want to be able to host websites from it but need to know how to fiddle with the CNAME, etc. at a VM level.
  • Fore
    Fore almost 11 years
    If you create a VM, you would still get a *.cloudapp.net adress to the machine. You would handle this the same way as a cloud service.
  • Dennis Burton
    Dennis Burton almost 11 years
    We do this with our build server. It runs on a Windows Azure VM. We have a CNAME mapping build.ourdomain to the VMNAME.cloudapp.net. Make sure you have an endpoint opened up for port 80.