Could not display DNS Resolver Cache in Windows Server 2008 R2 in Hyper-V environment

domain-namedomain-name-systemhyper-vipwindows-server-2008-r2

Currently I had a Windows Server 2008 R2 running in Hyper-V, previously it still able to access any kind of website with domain name. Recently, it failed to do that any more, and I found out that I can still access website with IP address, but not domain name, and once I tried manually configure the hosts file (located in system32/drivers/etc/), the domain name works again. I also tried flushdns, restart server, restart router, restart anything that I could.

Anyone know how to resolve this?

FIY: The server is a file server and deployment server, mainly for users logged in for building deployment and testing purpose. It does not have DNS server roles.

Best Answer

Open a command prompt and type "ipconfig /all".

This will list the DNS servers that your network adapter is using. If that is blank or points to somewhere strange, that is a likely source of your problem. Whatever is specified as your network adapter's DNS servers is always the place it will ask for DNS resolution, whether that destination is real or not.

The quickest way to get to where you need to fix it in Server 2008 is to open a run box and type 'ncpa.cpl'. This will fire up your network connections. Go to the properties of the problematic virtual NIC (you said this is on Hyper-V, right?), configure IPv4, and specify your DNS servers. If they are being assigned automatically, then that means DHCP isn't supplying the correct info. Manually type them in. If all you need is name resolution for websites outside your organization, Google's public DNS server of 8.8.8.8 works fine.

Related Topic