How can you tell if a node is a WINS server ...

Richard Sharpe rsharpe at ns.aus.com
Wed May 8 14:48:01 GMT 2002


On Wed, 8 May 2002, Christopher R. Hertel wrote:

> Look at the RA bit in the returned packet.  A WINS server should set
> this bit.  A non-WINS should leave it clear.

OK, so what I want is for nmblookup to decode this bit in some way?
 
> I am pretty sure this works with Windows boxes.  If so, we should be
> sure we do this correctly in Samba.  :)
> 
> See my notes in section 3.4.3.2.1 of
> http://www.ubiqx.org/cifs/NetBIOS.html
> 
> Chris -)-----
> 
> Richard Sharpe wrote:
> > 
> > Hi,
> > 
> > I am looking for a way from within a script to tell if a node is a
> > WINS server.
> > 
> > Doing something like 'nmblookup -A <ip.address>' is ambiguous, and
> > even asking the node to translate its own name is ambiguous.
> > 
> > It seems like you need to ask it to translate a name that a non-WINS
> > server would not normally have?
> > 
> > Regards
> > -----
> > Richard Sharpe, rsharpe at ns.aus.com, rsharpe at samba.org,
> > sharpe at ethereal.com
> 
> 

-- 
Regards
-----
Richard Sharpe, rsharpe at ns.aus.com, rsharpe at samba.org, 
sharpe at ethereal.com





More information about the samba-technical mailing list