nmblookup -A <IP Address>
This will return a bunch of stuff. It should be fairly obvious which is the name you're looking for. You could then write a wrapper to pull off just the answer you want.
David Smith wrote:
If I've got an IP address, i.e. 10.0.0.5, and I want to do a reverse lookup to find the Windows name, i.e. "mydesktop", how would I do that on Linux?
--Dave
____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list
smime.p7s
Description: S/MIME Cryptographic Signature
