At times my server gets a new ip from my router, thus rendering my hosts file invalid and generally making life less pleasant. So in order to get contact with the server again, I need to get the IP. This is where nmblookup comes in.
(where name-of-the-machine obviously is the samba configured name) will pop out a result like this
querying name-of-the-machine on 192.168.10.0