Reputation: 1275
I have a ASP.NET website hosted at a hosting provider (Windows Server 2012 IIS 8) which is down most of the time. I have my domain name registered through them which I do not intend moving as of now.
I am moving my hosting to Azure VM. Here's what I have already done.
On my existing hosting provider, I see the following DNS entries.
NS ns1.myhost.arvixevps.com
NS ns2.myhost.arvixevps.com
A < ipaddress >
* A < ipaddress >
www A < ipaddress >
mail A < ipaddress >
mail2 A < ipaddress >
MX [10], mail.mywebsite.com
MX [21], mail2.mywebsite.com
TXT globalsign-domain-verification=SKFHKSJHDLKUERIJKDCFJLKF_234KJFDJK
Q1. What do I need change in these entries so that www.mywebsite.com points to the website hosted on Azure VM instead of my old hosting?
Q2. Is it possible that I keep my mail server on my old hosting and move only my website to point to Azure VM?
Upvotes: 2
Views: 2082
Reputation: 136126
Q1. What do I need change in these entries so that www.mywebsite.com points to the website hosted on Azure VM instead of my old hosting?
You would need to change the A
record to point to the IP address of your new Virtual Machine in Azure. However for this, you would need to ensure that the IP address of your Virtual Machine does not change which would cost more. Another alternative is to use CNAME
mapping where you map your domain to the DNS name of your Azure Virtual Machine. You may find this link helpful: https://azure.microsoft.com/en-us/documentation/articles/cloud-services-custom-domain-name-portal/ (see the instructions for Azure Portal and not Azure Classic Portal there).
Q2. Is it possible that I keep my mail server on my old hosting and move only my website to point to Azure VM?
Yes, it is entirely possible to do so. Only change the DNS records that you want (A, CNAME etc.) and leave the MX records unchanged.
Upvotes: 1