如何为Azure虚拟机设置自定义域? [英] How to set a custom domain for Azure Virtual Machine?
问题描述
我有一个Azure虚拟机,该虚拟机已将 myvmname.northeurope.cloudapp.azure.com
设置为DNS名称.我希望它是类似于 somename.my.domain.com
的名称.我是 my.domain.com
的所有者.如何在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 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记录.请参阅此博客有关更多详细信息.
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屋!