3

I have set up file sharing and SQL Server instance connectivity between two VMs (testPC01, testPC02) in a Virtual Network on Azure.

The problem is that I cannot connect between these VMs by name (testPC01, testPC02), but only by their IP addresses (10.0.0.4, 10.0.0.5). I cant even ping the names.

I haven't fiddled with any network settings. These are fresh VMs.

How can I resolve by name and not by IP?

Dave New
  • 38,496
  • 59
  • 215
  • 394

1 Answers1

3

see similar thread: Azure VMs Virtual Network inter-communication

you will have to configure your own DNS for name resolution.

Community
  • 1
  • 1
JuneT
  • 7,840
  • 2
  • 15
  • 14
  • Ah, thanks. So is there specific software that I should install onto a separate 'DNS' VM to handle name resolution? – Dave New Feb 14 '13 at 07:37
  • 1
    yes. if that's just two machines and you don't want the overhead of a DNS server, you can just manually put entries in each machine's hosts file. – JuneT Feb 14 '13 at 08:08
  • What about setting up a static IP? [This post says otherwise.](http://stackoverflow.com/questions/14546857/need-to-setup-dns-server-on-azure-vm) – Dave New Feb 15 '13 at 12:39
  • 1
    Oh, static IPs are only impossible for non-VNet VMs. – Dave New Feb 15 '13 at 13:10