Someone suggested the command nmblookup. But when I ran this command, it issued the following error.
$ nmblookup -U 10.140.8.106 -R 'name'
querying name on 10.140.8.106
name_query failed to find name name
Which configure file or command line options does nmblookup use relating to a query? How does it know the WINS server address?
Thanks

namewith the hostname you're actually interested in, haven't you? (See this example) – sr_ May 7 '12 at 12:34