Install prerequisites:
sudo apt-get libnss-winbind winbind
Then, edit /etc/nsswitch.conf
and add wins
to the hosts
line.
You can always use nmblookup
manually if you don't want the above setup.
Shouldn't that be this command instead?
sudo apt-get install libnss-winbind winbind
This works in earlier ubuntu versions. Ubuntu 18.04 seems to require a different approach. https://askubuntu.com/questions/1043907/18-04-does-not-resolve-hosts-on-local-network
https://ubuntuforums.org/showthread.php?t=2384959&p=13739811#post13739811