I'm mounting a Windows share using the following in Ubuntu:
mount -t cifs username=MYUSER,password=1234 //192.168.1.5/myshare /mnt/windows_share
This works fine, but I would like to mount the share using the computer's hostname, not the IP.
I can ping the hostname fine, but I mounting using the hostname instead of the IP does not work. The share cannot be found.
In Windows, I can access the share as
\\COMPUTER\\\myshare, and using Nautilus in Ubuntu, I can connect to
//COMPUTER/myshare, but I can't use the name in the mount command.