smbclient using WINS lookup on the same machine as the WINS server

Richard Sharpe sharpe at ns.aus.com
Mon Oct 5 05:33:49 GMT 1998


Hi,

I have put some mods into param/loadparam.c and client/client.c to allow
smbclient to set the WINS server to 127.0.0.1 if wins support is defined in
the smb.conf and the client is making the call.

However, while smbclient now sends WINS requests to 127.0.0.1, nmbd drops
the replies on the floor after doing the lookup as shown below ...

Luke, how do I get around this?

>[1998/10/05 12:01:55, 4] libsmb/nmblib.c:debug_nmb_packet(109)
>  nmb packet from 172.30.0.37(137) header: id=7208 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=RJSPC1<20> q_type=32 q_class=1
>[1998/10/05 12:01:55, 3]
nmbd/nmbd_winsserver.c:wins_process_name_query_request(1324)
>  wins_process_name_query: name query for name RJSPC1<20> from IP 172.30.0.37
>[1998/10/05 12:01:55, 3]
nmbd/nmbd_winsserver.c:wins_process_name_query_request(1369)
>  wins_process_name_query: name query for name RJSPC1<20> returning first
IP 172.30.0.162.
>[1998/10/05 12:01:55, 4] nmbd/nmbd_packets.c:reply_netbios_packet(911)
>  reply_netbios_packet: sending a reply of packet type: wins_query
RJSPC1<20> to ip 172.30.0.37 for id 7208
>[1998/10/05 12:01:55, 4] libsmb/nmblib.c:debug_nmb_packet(109)
>  nmb packet from 172.30.0.37(137) header: id=7208 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=RJSPC1<20> rr_type=32 rr_class=1 ttl=517977
>      answers   0 char ......   hex 0000AC1E00A2
>[1998/10/05 12:01:55, 5] nmbd/nmbd_packets.c:reply_netbios_packet(953)
>  reply_netbios_packet: sending packet to ourselves.
>[1998/10/05 12:01:55, 4] libsmb/nmblib.c:debug_nmb_packet(109)
>  nmb packet from 172.30.0.37(137) header: id=7208 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=RJSPC1<20> rr_type=32 rr_class=1 ttl=517977
>      answers   0 char ......   hex 0000AC1E00A2
>[1998/10/05 12:01:55, 4]
nmbd/nmbd_responserecordsdb.c:find_response_record_on_subnet(197)
>  find_response_record: found response record id = 7208 on subnet
UNICAST_SUBNET
>[1998/10/05 12:01:55, 5] nmbd/nmbd_namequery.c:query_name_response(82)
>  query_name_response: On subnet UNICAST_SUBNET - positive response from
IP 172.30.0.37 for name RJSPC1<20>. IP of that name is 172.30.0.37
>[1998/10/05 12:01:55, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(250)
>  add_name_to_subnet: Added netbios name RJSPC1<20> with first IP
172.30.0.162 ttl=3600 nb_flags= 0 to subnet 172.30.0.37
>[1998/10/05 12:01:55, 5]
nmbd/nmbd_winsproxy.c:wins_proxy_name_query_request_success(108)
>  wins_proxy_name_query_request_success: name RJSPC1<20> is a WINS proxy
name and is also on the same subnet (172.30.0.37) as the requestor. Not
replying.
>

Regards
-------
Richard Sharpe, sharpe at ns.aus.com, NIC-Handle:RJS96
NS Computer Software and Services P/L, 
Ph: +61-8-8281-0063, FAX: +61-8-8250-2080, 
Samba, Linux, Apache, Digital UNIX, AIX, Netscape, Stronghold, C, ...


More information about the samba-technical mailing list