Getting the IP of a SaMBa server or Windows machine

6. september 2011

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.

Simply type
nmblookup name-of-the-machine
(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
192.168.10.114