1

When we launch a VM or create a NIC within the Azure VNET, by default, it been assign the internal DNS, something of pattern (*.internal.cloudapp.net)

As it's mention in this document https://learn.microsoft.com/en-us/azure/virtual-machines/virtual-machines-linux-azure-dns#azure-provided-name-resolution

When using Azure-provided name resolution, an Internal DNS suffix (*.internal.cloudapp.net) is provided to each VM using DHCP.

How do I get the same for internal load balancer? I am using Azure ARM based load balancer not the cloud service one. I can assign static private IP, but it won't get resolve to internal DNS like VM does

Jason Ye
  • 13,710
  • 2
  • 16
  • 25
Shabbir
  • 441
  • 2
  • 7
  • 17

1 Answers1

0

In Azure, the Azure-provided name resolution service is provided between VMs in virtual networks,so we can't get the internal DNS for the internal load balancer.

Jason Ye
  • 13,710
  • 2
  • 16
  • 25
  • 1
    OP is using an internal load balancer, surely it doesn't have a public IP address as in the image? – juunas Jan 04 '17 at 10:25
  • If OP has 2 VMs behind the internal load balancer, then in your way you would get 2 FQDNs and could just delete the internal load balancer right? OP is asking how to assign an FQDN to the load balancer, not the VMs directly. – juunas Jan 04 '17 at 10:39
  • @JasonYe-MSFT: If you associate Public IP to internal load balancer, you are exposing your load balancer to internet. Another point, using public FQDN, your internal traffic now needs to route to internet to get to the load balancer. Wouldn't it be convenient, if there is some way that load balancer gets internal DNS like NIC's and VM gets when in a VNET. – Shabbir Jan 04 '17 at 12:14
  • @juunas Thank you for your suggestion, you are right – Jason Ye Jan 05 '17 at 04:02
  • @Shabbir you are right, we can't associate Public IP to internal load balancer. The Internal load balancer used for internal communication, so in the same Vnet, we can use private IP address. In Azure, the Azure-provided name resolution service is provided between VMs in virtual networks,so we can't get the internal DNS for the internal load balancer. – Jason Ye Jan 10 '17 at 01:32