如何为 Azure 虚拟机设置自定义域? [英] How to set a custom domain for Azure Virtual Machine?

查看:21
本文介绍了如何为 Azure 虚拟机设置自定义域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 Azure 虚拟机,它的 myvmname.northeurope.cloudapp.azure.com 设置为 DNS 名称.我希望它类似于 somename.my.domain.com.我是 my.domain.com 的所有者.如何在 VM 的门户上更改它?我是否被默认提供的一个卡住了?文档对 VM 不清楚.

I have an Azure Virtual Machine which has myvmname.northeurope.cloudapp.azure.com set as a DNS name. I want it to be something like somename.my.domain.com. I am an owner of my.domain.com. How do I change it on the portal for the VM? Did I get stuck with default provided one? Docs are not clear for VMs.

推荐答案

Azure VM 有一个 默认 FQDN 您只能更改 DNS 标签.如果要为该 Azure VM 添加自己的自定义域,可以添加 CNAME 类型的 DNS 记录,例如 somename.my.domain.com CNAME myvmname.northeurope.cloudapp.azure.comA 类型记录,例如 somename.my.domain.com A your Azure VM 公共 IP 地址 在 DNS 域 my.domain.com 提供者.

Azure VM has a default FQDN that you only could change the DNS label. If you want to add your own custom domain for that Azure VM, you could add a CNAME type DNS record like somename.my.domain.com CNAME myvmname.northeurope.cloudapp.azure.com or A type record like somename.my.domain.com A your Azure VM public IP address in your DNS domain my.domain.com provider.

您也可以选择托管您的域中的 Azure DNS,然后您可以在 Azure 门户上管理您的 DNS 记录.请参阅此博客 了解更多详情.

You also could select to host your domain in Azure DNS, then you can manage your DNS records on Azure portal. See this blog for more details.

这篇关于如何为 Azure 虚拟机设置自定义域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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