I have a virtual network setup in the Azure cloud. The virtual machines (all with Windows Server 2008) can only identify each other by IP and not by host name. To do this I need to set up my own DNS server in the virtual network. I do not have the expertise to do this.

Is there not a way to locally configure DNS 'bindings' in each virtual machines' TCP/IP settings?


You'll have to add entries in each server's hosts file, located at C:\Windows\System32\drivers\etc\hosts. Run Notepad as administrator, then open this file and add lines like this, one line per server:

xxx.xxx.xxx.xxx myserver 

I would advise that you invest in the time to deploy DNS in your environment. Managing hosts files does not scale whatosever past a small handful of machines.

  • This is perfect for now, thanks. Yes, I would like to implement DNS, but I've done some reading and it's mostly going over my head. Could you perhaps provide me with a starting point? Software to use? – Dave New Feb 14 '13 at 7:52
  • 2
    Windows Server 2008 has a DNS server role. It's quite simple to install and the wizards will get you started with a basic installation. You'd then specify that DNS server as the first DNS server in each machine's IP configuration. – Joel E Salas Feb 14 '13 at 8:06
  • Thanks. Another question: How would those machines then resolve Internet domains if they are only pointing to an internal DNS? – Dave New Feb 14 '13 at 8:10
  • 2
    @davenewza In the DNS server you set up a "forwarder," which is exactly what it sounds like. DNS requests that the DNS server can't answer (aka for domains you don't host) get sent along to the forwarder, which is generally a well-known DNS service like Google's public DNS. – Joel E Salas Feb 14 '13 at 8:11
  • 2
    You would point the 2008 server at an other DNS server. It is like asking your secretary to answer all local queries. When she does not know she 'phones out'. – Hennes Feb 14 '13 at 8:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.