I have a few questions:
1- Why can't it find it's own name?
2- Why does my server keep talking about subnet 192.168.1.5, shouldn't
it be 192.168.255.255?
3- Why does it say it found the name in the log.nmb but not send it
back?
process_name_query_request: Name query from 192.168.2.250 on subnet
192.168.1.5 for name NB_DUNGEON<00>
find_name_on_subnet: on subnet 192.168.1.5 - found name NB_DUNGEON<00>
source=0
4- What is this 'failing WINS test'? Is it normal, i.e. the packet is a
broadcast one, not destined for WINS?
------------------------
Here is relevant data:
doing 'nmblookup -d 255 nb_dungeon' yields (from the server itself or an
other on the net):
Initialising global parameters
params.c:pm_process() - Processing configuration file
"/usr/local/samba/lib/smb.conf"
Processing section "[global]"
doing parameter printing = bsd
doing parameter guest account = netbios
doing parameter server string = Newlix Corporation's Newlix Omega
v1.0.1-b
doing parameter socket options = TCP_NODELAY IPTOS_LOWDELAY
SO_SNDBUF=8192 SO_RCVBUF=8192
doing parameter unix password sync = yes
doing parameter update encrypted = yes
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = *new*pass* %n\n *new*pass* %n\n *change*
doing parameter encrypt passwords = yes
doing parameter name resolve order = lmhosts wins bcast host
doing parameter remote announce = 192.168.255.255
doing parameter netbios name = NB_DUNGEON
doing parameter wins support = yes
doing parameter local master = yes
doing parameter preferred master = yes
doing parameter workgroup = GAAJ
doing parameter domain master = yes
doing parameter os level = 65
doing parameter preserve case = yes
doing parameter bind interfaces only = yes
doing parameter interfaces = 192.168.1.5/255.255.0.0
127.0.0.1/255.255.255.255
pm_process() returned Yes
lp_servicenumber: couldn't find homes
lp_servicenumber: couldn't find printers
lp_servicenumber: couldn't find printers
adding IPC service
Added interface ip=192.168.1.5 bcast=192.168.255.255 nmask=255.255.0.0
Added interface ip=127.0.0.1 bcast=127.0.0.1 nmask=255.255.255.255
bind succeeded on port 0
Socket opened.
Sending queries to 192.168.255.255
nmb packet from 192.168.255.255(137) header: id=30400 opcode=Query(0)
response=No
header: flags: bcast=Yes rec_avail=No rec_des=No trunc=No auth=No
header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=0
question: q_name=NB_DUNGEON<00> q_type=32 q_class=1
1999/05/21 12:20:54 sending a packet of len 50 to (192.168.255.255) on
port 137
nmb packet from 192.168.255.255(137) header: id=30400 opcode=Query(0)
response=No
header: flags: bcast=Yes rec_avail=No rec_des=No trunc=No auth=No
header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=0
question: q_name=NB_DUNGEON<00> q_type=32 q_class=1
1999/05/21 12:20:54 sending a packet of len 50 to (192.168.255.255) on
port 137
nmb packet from 192.168.255.255(137) header: id=30400 opcode=Query(0)
response=No
header: flags: bcast=Yes rec_avail=No rec_des=No trunc=No auth=No
header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=0
question: q_name=NB_DUNGEON<00> q_type=32 q_class=1
1999/05/21 12:20:55 sending a packet of len 50 to (192.168.255.255) on
port 137
name_query failed to find name nb_dungeon
started with:
/usr/local/samba/bin/smbd -d 255 -D
/usr/local/samba/bin/nmbd -d 255 -D
smb.conf [global]:
printing = bsd
guest account = netbios
server string = Newlix Corporation's Newlix Omega v1.0.1-b
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192
SO_RCVBUF=8192
unix password sync = yes
update encrypted = yes
passwd program = /usr/bin/passwd %u
passwd chat = *new*pass* %n\n *new*pass* %n\n *change*
encrypt passwords = yes
name resolve order = lmhosts wins bcast host
remote announce = 192.168.255.255
netbios name = NB_DUNGEON
wins support = yes
local master = yes
preferred master = yes
workgroup = GAAJ
domain master = yes
os level = 65
preserve case = yes
bind interfaces only = yes
interfaces = 192.168.1.5/255.255.0.0 127.0.0.1/255.255.255.255
the log.nmb shows:
read_udp_socket: lastip 192.168.2.250 lastport 1243 read: 50
parse_nmb: packet id = 31026
1999/05/21 12:29:51 received a packet of len 50 from (192.168.2.250)
port 1243
nmb packet from 192.168.2.250(1243) header: id=31026 opcode=Query(0)
response=No
header: flags: bcast=Yes rec_avail=No rec_des=No trunc=No auth=No
header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=0
question: q_name=NB_DUNGEON<00> q_type=32 q_class=1
packet_is_for_wins_server: failing WINS test #1.
process_name_query_request: Name query from 192.168.2.250 on subnet
192.168.1.5 for name NB_DUNGEON<00>
find_name_on_subnet: on subnet 192.168.1.5 - found name NB_DUNGEON<00>
source=0
find_workgroup_on_subnet: workgroup search for GAAJ on subnet
192.168.1.5: found
announce_myself_to_domain_master_browser: t (927304190) -
last(927304185) < 900
dump_workgroups: dump workgroup on subnet 192.168.1.5: netmask=
255.255.0.0:
GAAJ(1) current master browser = UNKNOWN
NB_DUNGEON 40019a03 (Newlix Corporation's Newlix Omega
v1.0.1-b)
dump_workgroups: dump workgroup on subnet UNICAST_SUBNET: netmask=
192.168.1.5:
GAAJ(1) current master browser = UNKNOWN
NB_DUNGEON 40099a03 (Newlix Corporation's Newlix Omega
v1.0.1-b)
find_workgroup_on_subnet: workgroup search for GAAJ on subnet
192.168.1.5: found
find_workgroup_on_subnet: workgroup search for GAAJ on subnet
192.168.1.5: found
find_workgroup_on_subnet: workgroup search for GAAJ on subnet
UNICAST_SUBNET: found
is_myname("NB_DUNGEON") returns 1
is_myname("NB_DUNGEON") returns 1
write_browse_list: Wrote browse list into file
/usr/local/samba/var/locks/browse.dat
wins_write_database: Dump of WINS name list.
*<00> TTL = PERMANENT 192.168.1.5 44
*<20> TTL = PERMANENT 192.168.1.5 44
__SAMBA__<20> TTL = PERMANENT 192.168.1.5 44
__SAMBA__<00> TTL = PERMANENT 192.168.1.5 44
GAAJ<00> TTL = Mon May 24 12:29:45 1999
255.255.255.255 c4
GAAJ<1e> TTL = Mon May 24 12:29:45 1999
255.255.255.255 c4
NB_DUNGEON<20> TTL = Mon May 24 12:29:45 1999
192.168.1.5 10.222.222.0 127.0.0.1 46
NB_DUNGEON<03> TTL = Mon May 24 12:29:45 1999
192.168.1.5 10.222.222.0 127.0.0.1 46
NB_DUNGEON<00> TTL = Mon May 24 12:29:45 1999
192.168.1.5 10.222.222.0 127.0.0.1 46
WORKGROUP<00> TTL = Sun May 23 22:35:50 1999
255.255.255.255 c4
WORKGROUP<1e> TTL = Sun May 23 22:35:50 1999
255.255.255.255 c4
JEAN-SERGE GAGN<03> TTL = Sat May 22 07:05:12 1999
192.168.1.12 4
^A^B__MSBROWSE__^B<01> TTL = Mon May 24 08:19:49 1999
255.255.255.255 84
OLDXP<00> TTL = Sat May 22 07:05:12 1999
192.168.1.12 4
OLDXP<03> TTL = Sat May 22 07:05:12 1999
192.168.1.12 4
OLDXP<20> TTL = Sat May 22 07:05:12 1999
192.168.1.12 4
GAAJ<1b> TTL = Mon May 24 12:29:45 1999
192.168.1.5 44
find_workgroup_on_subnet: workgroup search for GAAJ on subnet
UNICAST_SUBNET: found
nmb packet from 192.168.255.255(137) header: id=30878
opcode=Registration(5) response=No
header: flags: bcast=Yes rec_avail=No rec_des=Yes trunc=No auth=No
header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=1
question: q_name=GAAJ<1b> q_type=32 q_class=1
additional: nmb_name=GAAJ<1b> rr_type=32 rr_class=1 ttl=14400
additional 0 char @..... hex 4000C0A80105
1999/05/21 12:29:51 sending a packet of len 68 to (192.168.255.255) on
port 137
retransmit_or_expire_response_records: timeout for packet id 30874 to IP
192.168.1.5 on subnet UNICAST_SUBNET
retransmit_or_expire_response_records: timeout for packet id 30877 to IP
192.168.1.5 on subnet UNICAST_SUBNET
read_udp_socket: lastip 192.168.1.5 lastport 137 read: 68
parse_nmb: packet id = 30878
1999/05/21 12:29:51 received a packet of len 68 from (192.168.1.5) port
137
discarding own packet from 192.168.1.5:137
find_name_on_subnet: on subnet 192.168.1.5 - found name GAAJ<1e>
source=2
send_election_dgram: Sending election packet for workgroup GAAJ on
subnet 192.168.1.5
send_mailslot: Sending to mailslot \MAILSLOT\BROWSE from NB_DUNGEON<00>
IP 192.168.1.5 to GAAJ<1e> IP 192.168.255.255
0 char .....Ap.......NB hex 08 01 8a 0f 01 41 70 17 00 00 00 00 00 00
4e 42
10 char _DUNGEON. hex 5f 44 55 4e 47 45 4f 4e 00
1999/05/21 12:29:51 sending a packet of len 193 to (192.168.255.255) on
port 138
find_workgroup_on_subnet: workgroup search for GAAJ on subnet
192.168.1.5: found
announce_myself_to_domain_master_browser: t (927304191) -
last(927304185) < 900
find_workgroup_on_subnet: workgroup search for GAAJ on subnet
UNICAST_SUBNET: found
nmb packet from 192.168.255.255(137) header: id=30878
opcode=Registration(5) response=No
header: flags: bcast=Yes rec_avail=No rec_des=Yes trunc=No auth=No
header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=1
question: q_name=GAAJ<1b> q_type=32 q_class=1
additional: nmb_name=GAAJ<1b> rr_type=32 rr_class=1 ttl=14400
additional 0 char @..... hex 4000C0A80105
1999/05/21 12:29:51 sending a packet of len 68 to (192.168.255.255) on
port 137
read_udp_socket: lastip 192.168.1.5 lastport 137 read: 68
parse_nmb: packet id = 30878
1999/05/21 12:29:51 received a packet of len 68 from (192.168.1.5) port
137
discarding own packet from 192.168.1.5:137
read_udp_socket: lastip 192.168.1.5 lastport 138 read: 193
1999/05/21 12:29:51 received a packet of len 193 from (192.168.1.5) port
138
discarding own packet from 192.168.1.5:138
find_workgroup_on_subnet: workgroup search for GAAJ on subnet
192.168.1.5: found
announce_myself_to_domain_master_browser: t (927304191) -
last(927304185) < 900
find_workgroup_on_subnet: workgroup search for GAAJ on subnet
UNICAST_SUBNET: found
read_udp_socket: lastip 192.168.2.250 lastport 1243 read: 50
parse_nmb: packet id = 31026
1999/05/21 12:29:51 received a packet of len 50 from (192.168.2.250)
port 1243
nmb packet from 192.168.2.250(1243) header: id=31026 opcode=Query(0)
response=No
header: flags: bcast=Yes rec_avail=No rec_des=No trunc=No auth=No
header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=0
question: q_name=NB_DUNGEON<00> q_type=32 q_class=1
packet_is_for_wins_server: failing WINS test #1.
process_name_query_request: Name query from 192.168.2.250 on subnet
192.168.1.5 for name NB_DUNGEON<00>
find_name_on_subnet: on subnet 192.168.1.5 - found name NB_DUNGEON<00>
source=0
find_workgroup_on_subnet: workgroup search for GAAJ on subnet
192.168.1.5: found
announce_myself_to_domain_master_browser: t (927304191) -
last(927304185) < 900
find_workgroup_on_subnet: workgroup search for GAAJ on subnet
UNICAST_SUBNET: found
read_udp_socket: lastip 192.168.2.250 lastport 1243 read: 50
parse_nmb: packet id = 31026
1999/05/21 12:29:51 received a packet of len 50 from (192.168.2.250)
port 1243
nmb packet from 192.168.2.250(1243) header: id=31026 opcode=Query(0)
response=No
header: flags: bcast=Yes rec_avail=No rec_des=No trunc=No auth=No
header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=0
question: q_name=NB_DUNGEON<00> q_type=32 q_class=1
packet_is_for_wins_server: failing WINS test #1.
process_name_query_request: Name query from 192.168.2.250 on subnet
192.168.1.5 for name NB_DUNGEON<00>
find_name_on_subnet: on subnet 192.168.1.5 - found name NB_DUNGEON<00>
source=0
find_workgroup_on_subnet: workgroup search for GAAJ on subnet
192.168.1.5: found
announce_myself_to_domain_master_browser: t (927304191) -
last(927304185) < 900
find_workgroup_on_subnet: workgroup search for GAAJ on subnet
UNICAST_SUBNET: found
find_workgroup_on_subnet: workgroup search for GAAJ on subnet
192.168.1.5: found
announce_myself_to_domain_master_browser: t (927304191) -
last(927304185) < 900
find_workgroup_on_subnet: workgroup search for GAAJ on subnet
UNICAST_SUBNET: found
find_workgroup_on_subnet: workgroup search for GAAJ on subnet
192.168.1.5: found
announce_myself_to_domain_master_browser: t (927304192) -
last(927304185) < 900
find_workgroup_on_subnet: workgroup search for GAAJ on subnet
UNICAST_SUBNET: found
nmb packet from 192.168.255.255(137) header: id=30878
opcode=Registration(5) response=No
header: flags: bcast=Yes rec_avail=No rec_des=Yes trunc=No auth=No
header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=1
question: q_name=GAAJ<1b> q_type=32 q_class=1
additional: nmb_name=GAAJ<1b> rr_type=32 rr_class=1 ttl=14400
additional 0 char @..... hex 4000C0A80105
1999/05/21 12:29:53 sending a packet of len 68 to (192.168.255.255) on
port 137
read_udp_socket: lastip 192.168.1.5 lastport 137 read: 68
parse_nmb: packet id = 30878
1999/05/21 12:29:53 received a packet of len 68 from (192.168.1.5) port
137
discarding own packet from 192.168.1.5:137
find_name_on_subnet: on subnet 192.168.1.5 - found name GAAJ<1e>
source=2
send_election_dgram: Sending election packet for workgroup GAAJ on
subnet 192.168.1.5
send_mailslot: Sending to mailslot \MAILSLOT\BROWSE from NB_DUNGEON<00>
IP 192.168.1.5 to GAAJ<1e> IP 192.168.255.255
0 char .....A@.......NB hex 08 01 8a 0f 01 41 40 1f 00 00 00 00 00 00
4e 42
10 char _DUNGEON. hex 5f 44 55 4e 47 45 4f 4e 00
1999/05/21 12:29:53 sending a packet of len 193 to (192.168.255.255) on
port 138
find_workgroup_on_subnet: workgroup search for GAAJ on subnet
192.168.1.5: found
announce_myself_to_domain_master_browser: t (927304193) -
last(927304185) < 900
--
// Jean-Serge Gagnon j...@newlix.com
// Newlix Corporation http://www.newlix.com