One of the many things that I find myself doing a lot is
domain mapping. This is essential and something that happens a lot when you are
experimenting with lots of web content. Here is how it normally works.
You build your site on your computer.
You then push your site files from your computer
to your site on azure web sites.
Then, you buy the domain from Godaddy.
Now, you need to connect that domain from
Godaddy and the site on your azure web sites.
In this post, I am talking about the last step, connecting
domain with azure web site. In order to do this, you will need some information
from Azure, and also from Godday.
On the Azure, side of things, you need to be ready with the
Login to your Azure management site (not the
azure portal, which is frankly a big mess and I don’t use it right now).
Select your website, and head over to the
At the bottom of the webpage, you will see
Here, you will fill in some stuff, but later.
Right now, simply make a note of the IP address provided over there.
On the Godaddy side of things, you need to.
Login, of course.
Then, head over to your domain details and
select your domain. If you don’t see something complicated (you will know it
when you see it) ensure that you are using ‘list view’. DO NOT USE ‘card view’.
Once you are in your domain, you will see
something called ‘DNS Zone File’. Yup, go into that.
Here, there two things that bother you – A
(HOST) and CNAME (Alias).
Under A, you have two things ‘*’ and ‘@’. For
both, put that IP address that you got from Azure (the top steps of Azure).
Save the changes.
Under CNAME, you need to add two entries.
First entry will be ‘awverify’ (Host) and ‘awverify.<yourazurewebsiteaddress>’
Second entry will be ‘awverify.www’ (Host) and
‘awverify.<yourazurewebsiteaddress>’ (Points To)
Your azure website address will be something
like hello123.azurewebsites.net. Here ‘hello123’ is the name you may have used
when creating the website on Azure management window.
After adding both, save.
- Now, come back to that Azure page, where you found the IP
address (Manage Domains).
Enter your domain name, without ‘www’. Azure
will find it, and give you a green check mark.
Enter your domain name, with ‘www’. Azure will
find it, and give you a green check mark.
That’s it! Now, your azure site and domain on Godaddy are
both connected. Of course, these steps will work for not just Godaddy but any
domain company from which you purchased your domain from.