DNS重定向到Azure VM显示IP地址而不是域名

编程入门 行业动态 更新时间:2024-10-26 18:27:10
本文介绍了DNS重定向到Azure VM显示IP地址而不是域名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我从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地址而不是域名

本文发布于:2023-11-01 19:49:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1550244.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:而不是   重定向   地址   域名   DNS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!