Posts Tagged ‘samba’

Get IP address from Samba share/NetBIOS name

Thursday, January 5th, 2012

Suppose you’ve got a NetBIOS address of a Samba share like //SERVER/MyShare and you’d like to know the IP address of the server with the NetBIOS name SERVER. On Linux, you can use Samba’s nmblookup like so:

  1. nmblookup -I SERVER
  2. querying SERVER on 192.168.0.255
  3. 192.168.0.213 SERVER<00>

In our example above, the IP address of the machine with the NetBIOS name SERVER turns out to be 192.168.0.213.