Search code examples
network-programmingipvmwarehosthostname

Hostname not resolving to local IP address


I am running a Windows 8 VM inside of vmware Fusion. It runs inside a Mac running OSX 10.10 (Yosemite). The VM has a computer name of "Proud". When I ping the VM from within itself, i.e. ping -a 192.168.0.138 I get a response like:

Pinging Proud [192.168.0.138] with 32 bytes of data: Reply from 192.168.0.138: bytes=32 time<1ms TTL=128

However whenever I ping Proud from Yosemite, i.e. ping Proud I get a response like:

PING proud (199.101.28.130): 56 data bytes 64 bytes from 199.101.28.130: icmp_seq=0 ttl=46 time=418.646 ms

The VM is using bridged networking.

Why does Proud resolve to that IP address? It is not correct and means I am unable to use the hostname (a necessity) so that I can connect to it from the Mac.


Solution

  • This seems to be a 'feature' of Mac OS. If I attempt to ping any hostname it will return the ping from this IP address - even if the hostname is fictional. I do not know why OS X does this.