The Crane Has Landed


Finding Windows boxes by their netbios name
June 2, 2008, 4:10 pm
Filed under: Ubuntu

Another tip I found – this one allows you to ping hunt for a Windows box from Ubuntu without having to change the hosts file to manually create the IP lookups.

  1. Install smbfs/cifs:
    apt-get install smbfs
  2. Edit your nsswitch file
    sudo nano /etc/nsswitch.conf

    Search through the file and look for the line that looks something like:

    hosts: files dns

    and add “wins” to the end of the line so it looks something like this:
    hosts: files wins dns
    NB: “wins” MUST come before “dns” if you are using the openDNS service.

  3. Install winbind
    apt-get install winbind

Done.  :)   Ping away!


No Comments Yet so far
Leave a comment



Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>