我从godaddy注册了一个域名并创建了一个cname记录,指向一个azure vm,我们部署了我们的网站。 它有效但浏览器显示的是ip地址而不是域名。不知道该怎么办?
解决方案
尝试为VM创建DNS名称并将其映射到该名称而不是映射到VM的IP地址
docs.microsoft/en-us/azure/virtual-machines/windows/portal -create-fqdn
这是更好的做法,因为你的IP地址可能会改变,除非你把它设置为静态,但DNS名称无论如何都会有用。
I registered a domain from godaddy and created a cname record to point to an azure vm, where we deployed our website. it worked but browser shows the ip address instead of domain name. Not sure what shall I do?
解决方案Instead of mapping to the IP address of the VM try creating a DNS name for your VM and mapping it to that instead
docs.microsoft/en-us/azure/virtual-machines/windows/portal-create-fqdn
This is better practice anyways as your IP address might change unless you have it set to static but the DNS name will work regardless.
更多推荐
DNS重定向到Azure VM显示IP地址而不是域名
发布评论