To enable NetBIOS name lookup in Linux, simply edit /etc/nsswitch.conf and add wins to the hosts line.
hosts: files dns After:
hosts: files dns wins Then install the winbind package.
sudo apt-get install winbind
You should now be able to address other machines on your LAN by their hostnames.
user@host:$ ping otherhost
ping: unknown host otherhost
user@host:$ ping otherhost PING otherhost (192.168.1.1) 56(84) bytes of data. 64 bytes from otherhost.
Read more →