A normal ping/dig/etc just resolves the hostname to an IP address. If you are up to a netbios name (windows/samba share name from a host computer) and want to get the ip address you can issue a nmblookup – if you are within the current subnet of course (broadcast question stuff).

$ sudo apt-get install samba-common-bin
$ nmblookup [netbiosname]
%d bloggers like this: