I’m currently running ubuntu server in a virtual machine on my pc, and one of the annoying problems I’ve always had with ubuntu is that it never seems to be able to resolve the hostnames of machines running windows.
After a little bit of digging I found a really simple solution in this forum topic
All you have to do is:
sudo nano /etc/nsswitch.confchange the line that says
hosts: files dnsto this:
hosts: files wins dns(order does matter)
finally, you need to install winbind
sudo apt-get install winbind
To enable windows to ping ubuntu you then need to install samba:
sudo apt-get install samba