How to set up CNAME to point to Azure

From the documentation:

To configure an A record you must configure a CNAME record used to verify the domain name. This process is the same as one used to configure a CNAME record to point at to your web site, except that you configure the CNAME record domain names that will be used for verification purposes.

The awverify record is so that Azure can confirm that you control the domain name, and want it linked to a specific site. You need to create two records in your DNS:

awverify.myhost.dk  CNAME   awverify.myhost.azurewebsites.net
myhost.dk       A       1.2.3.4

A CNAME is a pointer from one domain name (the "canonical name") to another domain name. So for example, if you wanted to make myhost.dk point to myhost.azurewebsites.net you would need to create a CNAME with myhost.dk as the canonical name and myhost.azurewebsites.net as the host.

Azure first requires to you set up awverify.myhost.dk to verify that you own and control the myhost.dk domain. Other services (e.g., Google Apps) perform similar validation to verify domain ownership. For this, awverify.myhost.dk would be the canonical name and awverify.myhost.azurewebsites.net would be the host.

After creating this record, you should be able to use your favorite DNS lookup tool to verify that the record exists. Something like:

$ host -t cname www.example.com
www.example.com is an alias for example.myhost.azurewebsites.net.