Tuesday, January 26, 2010

How to ping windows host names from Linux

I have a home network (workgroup) and i want to be able to ping my windows machines from Linux, using the windows host name (Wins, NetBios name).

To enable that, make sure that you have samba client installed and then edit /etc/nsswitch.conf and find the line starting with hosts. Add "wins" at the end of the line:


hosts: ... dns wins