Tim Lovell-Smith
Tim Lovell-Smith

Reputation: 16135

How do I use the default 'Internal Azure DNS' to resolve DNS names of worker roles within the same Azure Virtual Network?

I have a cloud service that has a worker role 'Kernel' with 2 instances (instance 0, and instance 1). I have another VM deployed in a different subnet, in the same Azure Virtual Network. I heard that I can use Azure DNS to resolve a hostname to get the private (dynamic) IP address of each worker role. But how do I actually do that? I assume on the client side this is just a standard DNS lookup, so the question is really: what do I put in the CSCFG file, and what FQDN DNS name is actually what I should resolve?

Upvotes: 0

Views: 2713

Answers (1)

garbrad
garbrad

Reputation: 241

To set the name on the worker role VMs, add vmName to the cscfg as described here: https://msdn.microsoft.com/en-us/library/azure/jj156212.aspx

The two workers will have a common DNS suffix so you can just refer to them by name. To find the FQDN you'll either need to login to one of the VMs and do ipconfig /all or use the powershell Get-AzureVM cmdlet with the -Debug switch and look for InternalDnsSuffix.

Regards Gareth [MSFT]

Upvotes: 1

Related Questions