nmbd & netbios name -> many addreses
Peter Polkinghorne
Peter.Polkinghorne at brunel.ac.uk
Thu Mar 18 16:10:08 GMT 1999
> On Mon, 15 Mar 1999, Peter Polkinghorne wrote:
>
> > Just to re-iterate one more time:
> >
> > test-nt - Windows 4.0 sp3 workstation - single homed
> >
> > queries using Netbios over TCP for name KUDOS
> >
> > biela - Samba 2.0.3 nmbd (on Solaris 2.5.1) running as WINS server - single
> > homed
> >
> > gets back 2 addresses and complains.
>
> the query is being made _from_ test-nt _to_ biela _for_ kudos.
>
>
This is correct.
More news:
I have also now found a friendly Electrical Engineer with a NT Server (4.0
sp3) h2pc-27 - so I have installed WINS on it and used it in place of biela
(the Samba 2.0.3 WINS server).
Kudos registered with h2pc-27 fine - nmblookup to it gave a good response:
nmblookup -R -U 134.83.96.107 -d 31 kudos
[SNIP]
Sending queries to 134.83.96.107
nmb packet from 134.83.96.107(137) header: id=3836 opcode=Query(0) response=No
header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=No
header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=0
question: q_name=KUDOS<00> q_type=32 q_class=1
1999/03/18 15:50:54 sending a packet of len 50 to (134.83.96.107) on port 137
read_udp_socket: lastip 134.83.96.107 lastport 137 read: 68
parse_nmb: packet id = 3836
1999/03/18 15:50:54 received a packet of len 68 from (134.83.96.107) port 137
nmb packet from 134.83.96.107(137) header: id=3836 opcode=Query(0) response=Yes
header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes
header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
answers: nmb_name=KUDOS<00> rr_type=32 rr_class=1 ttl=0
answers 0 char @..S.. at ..S`. hex 400086531019400086536014
Got a positive name query response from 134.83.96.107 ( 134.83.16.25
134.83.96.20 )
134.83.16.25 kudos<00>
134.83.96.20 kudos<00>
I also used tcpdump to sniff traffic on the netbios ns between test-nt and the
NT WINS server - and when it queried for KUDOS I got the following exchange
2ce:
17:35:56.611949 test-nt.brunel.ac.uk.netbios-ns > h2pc-27.brunel.ac.uk.netbios-
n
s:^M
>>> NBT UDP PACKET(137): QUERY; REQUEST; UNICAST^M
TrnID=0x8014^M
OpCode=0^M
NmFlags=0x10^M
Rcode=0^M
QueryCount=1^M
AnswerCount=0^M
AuthorityCount=0^M
AddressRecCount=0^M
QuestionRecords:^M
Name=KUDOS NameType=0x20 (Server)^M
QuestionType=0x20^M
QuestionClass=0x1^M
17:35:56.666818 h2pc-27.brunel.ac.uk.netbios-ns > test-nt.brunel.ac.uk.netbios-
n
s:^M
>>> NBT UDP PACKET(137): QUERY; POSITIVE; RESPONSE; UNICAST^M
TrnID=0x8014^M
OpCode=0^M
NmFlags=0x58^M
Rcode=0^M
QueryCount=0^M
AnswerCount=1^M
AuthorityCount=0^M
AddressRecCount=0^M
^M
ResourceRecords:^M
Name=KUDOS NameType=0x20 (Server)^M
ResType=0x20^M
ResClass=0x1^M
TTL=0^M
ResourceLength=12^M
ResourceData=^M
[000] 40 00 86 53 10 19 40 00 86 53 60 14 @..S.. at . .S`.^M
The good news from a Samba perspective is that as far as tcpdump can tell, the
response from the NT WINS server to the NT workstation was identical to the
Samba WINS server. The bad news is that the NT Workstation still was unhappy
with the result and failed to mount the share from kudos with error 53.
Since the KB articles kindly referenced by Markus indicate that Netbios names
can map to multiple addresses, I am baffled by the NT Workstation behaviour.
The problem has been reported by other machines (from trial deployment of
Samba WINS server with other samba servers reporting multihomed addresses to
it).
I have a workround of getting the samba servers NOT to register with WINS and
rely on DNS to map the names. The only other test I can think of is to get a
NT workstation that has been installed from scratch with a vanilla
configuration in case there is anything in our local NT set up that causes the
problem. One obvious candidate is that we use NISgina from QMW to do
quthentication - but would be surprised if that affected the netbios name
service over TCP.
Thanks for all your help & interest ...
--
-----------------------------------------------------------------------------
| Peter Polkinghorne, Computer Centre, Brunel University, Uxbridge, UB8 3PH,|
| Peter.Polkinghorne at brunel.ac.uk +44 1895 274000 x2561 UK |
-----------------------------------------------------------------------------
More information about the samba-technical
mailing list