无法将子域(在其他位置托管,并通过Cloudflare路由)指向Azure DNS名称以进行虚拟机访问 [英] Unable to point subdomain (hosted elsewhere, and routed through Cloudflare) to Azure DNS name for virtual machine access

查看:45
本文介绍了无法将子域(在其他位置托管,并通过Cloudflare路由)指向Azure DNS名称以进行虚拟机访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在试用Azure中的虚拟机,但是我无法成功连接子域以指向它(使用Flywheel托管,并通过Cloudflare路由)。


$
在Azure中,我为"使用Cassandra的ThingsBoard专业版"创建了一个虚拟机,然后使用DNS配置了一个公共IP地址名称"dm-things"它创建了dm-things.australiaeast.cloudapp.azure.com的DNS标签。






然后我在Cloudflare中创建了一个CNAME记录,指向我个人网站的子域名(已经使用Flywheel托管) )在上面的Azure DNS标签上。






所以这应该路由"things.dennismurphy.biz" to dm-things.australiaeast.cloudapp.azure.com"。


我得到"521错误 - 网络服务器关闭"当我前往子域名"things.dennismurphy.biz"时。我无法在Azure帮助中找到有关我在Azure中错过的配置以使其工作的明确信息。

解决方案

您好,


我在Godaddy注册了一个域名。我添加了一个CNAME记录,如下所示。
$



它运作良好,如下所示:




由于Web服务器返回了错误代码521,因此DNS解析运行良好且能够到达服务器。

您可以尝试再次添加CNAME并测试一次。





I am trialing a virtual machine in Azure, however I am unable to successfully connect a subdomain to point at it (hosted with Flywheel, and routed through Cloudflare).

In Azure, I have created a Virtual Machine for the "ThingsBoard Professional Edition with Cassandra", then configured a Public IP Address with a DNS name "dm-things" which creates a DNS label of dm-things.australiaeast.cloudapp.azure.com



I have then created a CNAME record in Cloudflare to point a subdomain from my personal website (already hosted with Flywheel) at the Azure DNS label above.


So this should route "things.dennismurphy.biz" to dm-things.australiaeast.cloudapp.azure.com".

I get "521 Error - Web server is down" when I head to the subdomain "things.dennismurphy.biz". I can't find clear information in Azure help on what I have missed in Azure to configure to get this to work.

解决方案

Hi,

I have a domain registered in Godaddy. I added a CNAME record as shown below.

It worked well as you can see below:

Since the web server returned the error code 521, DNS resolution worked well and its able to reach the server.
Can you try adding the CNAME again and test once.


这篇关于无法将子域(在其他位置托管,并通过Cloudflare路由)指向Azure DNS名称以进行虚拟机访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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