Follow given below points:
- Host machine has windows 8.
- VM machine has windows server 2012.
- Open network connection.
- Go to properties of ethernet0.
- Add alternate DNS server (8.8.8.8).
- Open the DNS server.
- Go to properties.
- Move to forwarders tab.
- Click on edit and add 8.8.8.8 and 4.2.2.2.
- Go to VM settings.
- Choose network adapters, select custom on right and choose VMNet8(NAT).
- Go to VM Edit -> Virtual network editor.
- Select VMNet8, click on NAT settings at bottom.
- Just click ok, ok and close the windows.
- Go to the network connections, disable and enable the ethernet connection.