[Samba] Name Resolution, Pinging
Joel at HammersHome.com
Thu May 16 14:42:03 GMT 2002
You might experiment with nmblookup to see if it will provide you with what
If you can get the ip's on your linux box with nmblookup netbiosname, you
could write a little script to ping for you. Something like this:
a=`nmblookup $1 | sed -n s/"Got a positive name query response from //p" | \
cut -d" " -f1`
You might find it easy to add all those hosts to your /etc/hosts file with:
nmblookup -T "*"
and a little editing with vi or sed.
On Thu, May 16, 2002 at 09:34:22AM -0700, Adam Cormany wrote:
> I am running redhat 7.3 with Samba 2.2.4. I was
> wondering if there was a way to use Samba to resolve
> my IPs instead of having to add all the entries to my
> /etc/hosts file? For instance, I would like to be able
> to do `ping acormany` instead of `ping <IP Address>`.
> We are currently using WINS on a Windows box to
> resolve the IPs. As of right now, I can `ping
> acormany` on a Windows system, but not on my Redhat
> 7.3. Can this be resolved through Samba? If so, could
> someone point me in the right direction?
> Adam Cormany
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
More information about the samba