When accessing computers on a LAN, it's often useful to access them by name instead of IP. This is especially true when dealing with dynamic IP addresses.
In Windows, other Windows computer names are automatically resolved to an IP address. In most Linux distros however, this is not the case (by default).
To resolve Windows NetBIOS names in Linux, you'll need the winbind component of the Samba suite. Winbind allows a UNIX box to become a full member of an NT domain, giving the ability to resolve names from it.
Install winbind via your preferred package manager. For Debian and derivatives, the following should work.
Now that winbind is installed, the OS must be configured to use it when
looking up hostnames. Open the file
/etc/nsswitch.conf and add "wins"
to the end of the line starting with "hosts:".
For example, the line in my file now looks like
Save the file and reboot to start the winbindd deamon.
To test if if worked, try pinging a computer on your LAN by name. For example:
1 2 3 4 5