将DNS映射到Azure VM [英] Mapping DNS to Azure VM

查看:111
本文介绍了将DNS映射到Azure VM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在托管服务提供商(Windows Server 2012 IIS 8)上托管了一个ASP.NET网站,而该网站大多数时候都处于关闭状态.我已经通过他们注册了我的域名,到目前为止我不打算再移动它.

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.

我正在将托管移动到Azure VM.这是我已经做的.

I am moving my hosting to Azure VM. Here's what I have already done.

  • 在Azure中使用静态IP创建的虚拟机.
  • 创建了一个称为red-seau-cloudapp-azure的DNS.
  • 在公共端口80上添加了端点.因此可以通过localhost和http://ipaddress/(VM外部)访问网站

在现有的托管服务提供商上,我看到以下DNS条目.

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

第1季度.我需要对这些条目进行哪些更改,以便www.mywebsite.com指向托管在Azure VM上的网站而不是以前的托管网站?

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?

第二季度.是否可以将邮件服务器保留在旧主机上,并且仅移动网站以指向Azure VM?

Q2. Is it possible that I keep my mail server on my old hosting and move only my website to point to Azure VM?

推荐答案

Q1.我需要在这些条目中进行哪些更改,以便www.mywebsite.com指向托管在Azure VM而非旧托管上的网站?

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?

您需要更改 A 记录以指向Azure中新虚拟机的IP地址.但是,为此,您需要确保虚拟机的IP地址不变,这会增加成本.另一种选择是使用 CNAME 映射,在该映射中,您将域映射到Azure虚拟机的DNS名称.您可能会发现此链接有用: https://azure.microsoft.com/zh-CN/documentation/articles/cloud-services-custom-domain-name-portal/(请参阅Azure门户的说明,而不是那里的Azure经典门户的说明).

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.我是否可以将邮件服务器保留在旧的托管服务器上,并且仅移动我的网站以指向Azure VM?

Q2. Is it possible that I keep my mail server on my old hosting and move only my website to point to Azure VM?

是的,完全有可能这样做.仅更改所需的DNS记录(A,CNAME等),并保持MX记录不变.

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.

这篇关于将DNS映射到Azure VM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆