I'm running two VM's in VMware Workstation 7: My primary work VM (hostname main), runs Ubuntu 11.04. Uses VMnet0, which I configured to use NAT, and a Debian-based appliance (hostname server), also in VMnet0. Now I need to get some data from main to server, which I thought I would do using nfs. No problem there.
I thought I'd put the host names in my host's (Windows 7 x64, hostname desktop) hosts file. It looks like this:
192.168.130.10 main 192.168.130.12 server
In Windows 7, i tried a
ping main and a
ping server, and both succeeded. However, when I try to
ping desktop or
ping server from main, it fails.
nslookup desktop returns
Server: 192.168.130.2 Address: 192.168.130.2#53 ** server can't find desktop: NXDOMAIN
It looks like VMware's DNS server doesn't care about my hosts file. How do I fix this?
Edit: I should have mentioned that I can browse the internet just fine, DNS lookups work perfectly, however, overrides in the host's host file are not applied.