[COLUG] Re: Lan hostname to IP resolution

Rob Funk rfunk at funknet.net
Sun Feb 24 18:19:47 EST 2008


jep200404 wrote:
> The dirtbag technique is to enable samba,
> then use nmblookup to get the IP addresses.
> You would write a little script to extract the IP address
> out of the output of nmblookup.
>
> > "scp -pr project1 my-etch1:"
>
> would become something like:
>
> "scp -pr project1 `getipaddressofthatsambathingy my-etch1`:"

No need to make the scp command more complicated.

It's possible to install a "winbind" library that can be enabled 
in /etc/nsswitch.conf so that a hostname lookup includes the Windows 
network in its search.

On Debian and Ubuntu, "apt-get install winbind".  I assume that the RPM 
types have it available too.  It may be packaged as part of Samba.


Package: winbind
Source: samba
Description:
 service to resolve user and group information from Windows NT servers

 This package provides the winbindd daemon, which provides a
 service for the Name Service Switch capability that is present
 in most modern C libraries (like the GNU C Library - glibc.)
 .
 The service provided by winbindd is called `winbind' and
 can be used to resolve user and group information from a
 Windows NT server. The service can also provide authentication
 services via an associated PAM module.


-- 
==============================|   "A microscope locked in on one point
 Rob Funk <rfunk at funknet.net> |Never sees what kind of room that it's in"
 http://www.funknet.net/rfunk |    -- Chris Mars, "Stuck in Rewind"


More information about the colug432 mailing list