如何将 Public DNS 名称解析为 Azure 上的内部 IP?
How Do I Resolve A Public DNS Name To An Internal IP On Azure?
我有一个使用默认 Azure DNS 设置的 azure 网络。
所有虚拟机都是 ubuntu。
当我尝试通过 public DNS 名称访问网络上的另一个 VM 时,它解析为 public IP。
当我从虚拟网络请求它时,如何让它解析为内部 IP(显然在外部请求时仍然解析为 public IP)。
我对 cli 答案以及通过门户进行的配置感兴趣。
用于 IaaS 和 PaaS 解决方案的 Azure DNS
请参阅 this article 以了解有关 Azure 自己的与虚拟网络关联的 DNS 服务的更多信息。简而言之
When role instances and VMs hosted in Azure need to resolve domain
names to internal IP addresses, they can use one of two methods:
- Azure-provided name resolution
- Name resolution that uses your own DNS server (which might forward queries to the Azure-provided DNS servers)
The type of name resolution you use depends on how your VMs and role
instances need to communicate with each other.
Azure DNS 私有区域(预览版)
还有一个相对较新的服务,称为 Azure DNS 私有区域,允许您设置私有 DNS 服务以用于虚拟网络等。
此服务允许您为您的机器设置私有域和私有 IP。参见 this page for more information and some common usage scenarios。
此外,请参阅此功能建议:
我有一个使用默认 Azure DNS 设置的 azure 网络。
所有虚拟机都是 ubuntu。
当我尝试通过 public DNS 名称访问网络上的另一个 VM 时,它解析为 public IP。
当我从虚拟网络请求它时,如何让它解析为内部 IP(显然在外部请求时仍然解析为 public IP)。
我对 cli 答案以及通过门户进行的配置感兴趣。
用于 IaaS 和 PaaS 解决方案的 Azure DNS
请参阅 this article 以了解有关 Azure 自己的与虚拟网络关联的 DNS 服务的更多信息。简而言之
When role instances and VMs hosted in Azure need to resolve domain names to internal IP addresses, they can use one of two methods:
- Azure-provided name resolution
- Name resolution that uses your own DNS server (which might forward queries to the Azure-provided DNS servers)
The type of name resolution you use depends on how your VMs and role instances need to communicate with each other.
Azure DNS 私有区域(预览版)
还有一个相对较新的服务,称为 Azure DNS 私有区域,允许您设置私有 DNS 服务以用于虚拟网络等。
此服务允许您为您的机器设置私有域和私有 IP。参见 this page for more information and some common usage scenarios。
此外,请参阅此功能建议: