Linux – Ping Ubuntu by hostname in a Windows machine

linuxnetworkingsambaUbuntuvirtualbox

I installed Ubuntu 12.04 on a Virtual Machine (Virtualbox). The network adapter is attached using bridged adapter.

I can ping the guest OS by IP but I can't ping it via hostname.

I already installed Samba and winbind. I also edited /etc/nsswitch.conf to and 'wins'.

Does the settings takes time to take into effect? What other things can I try to be able to ping the Ubuntu OS by hostname?

Thanks!

Best Answer

Not sure why Ubuntu is different but this works with debian:

Install debian using bridged networking

Install Samba

As soon as Samba is installed and running the guest machine can be pinged by hostname. I'm using a Windows 7 host and a Debian 7 LXDE guest.

Related Question