I've got a pair of Ubuntu machines and a Windows PC. If I create a share on the Windows PC, either Ubuntu computer can mount it using
mount -t cifs -o username=me //computername/sharename /mnt/mountpoint. If I create a share on either Ubuntu machine, the Windows computer can see it at //computername/sharename on the network and access it just fine.
However, if I create a share on one Ubuntu computer (either) and try to mount it on the other one, I get
mount error: could not resolve address for computername: Unknown error. Using the IP instead of the netbios name gets it mounted just peachy.
Even more strange,
nmblookup computername yields the IP address.
What do I need to do on the Ubuntu sharing- and mounting- computers in order to mount the share by netbios name instead of IP address? (Outside of making a bash script to retrieve the IP address from the netbios name every time, or setting static IPs).