DNS重定向到Azure VM显示IP地址而不是域名 [英] DNS redirect to an Azure VM shows IP address instead of domain name
问题描述
我从godaddy.com注册了一个域名并创建了一个cname记录,指向一个azure vm,我们部署了我们的网站。
它有效但浏览器显示的是ip地址而不是域名。不知道该怎么办?
尝试为VM创建DNS名称并将其映射到该名称而不是映射到VM的IP地址
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/portal -create-fqdn
这是更好的做法,因为你的IP地址可能会改变,除非你把它设置为静态,但DNS名称无论如何都会有用。
I registered a domain from godaddy.com 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
https://docs.microsoft.com/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地址而不是域名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!