lookup smb windows hostnames from the command prompt in linux

There is this cool way of being able to lookup windows hostnames in linux. Ie so you can ping mywindowshostname and it will just find the ip and ping it. All you have to do is edit the line in /etc/nsswitch.conf: from hosts: files dns to hosts: files dns wins and install the winbind service. […]