-1

I created a virtual network and put 2 VMs in one subnet. But they were not able to ping each other using their hostnames. I need a DNS Server implemented so that hostnames in the subnet can be resolved to IP addresses. How do I do that? Any help will be appreciated. :)

1 Answers1

0

To sum it up:

  1. Install and configure DNS on one of the Vnet servers: https://technet.microsoft.com/en-us/library/cc730921.aspx
  2. Assign an internal static IP to the VM you installed DNS on: https://azure.microsoft.com/en-us/documentation/articles/virtual-networks-reserved-private-ip/
  3. Configure the Vnet to use the DNS IP addresses for name resolution:https://azure.microsoft.com/en-us/documentation/articles/virtual-networks-manage-dns-in-vnet/
  4. Restart your VMs at least once to get the new configuration.
Noor Khaldi
  • 3,869
  • 3
  • 19
  • 28