[Samba] nmbd name expired for permanent entry

Peter Eser Peter.Eser at heuft.com
Tue Jul 10 13:24:29 GMT 2007


I have a permanent entry made in wins.dat for server SAMIDA-S01. However
after a while a wins query (nmblookup -U localhost -R SAMIDA-S01) gets
responded with name_query failed.
Debug says the name is expired but the database dump has it as permament.
SAMIDA-S01 is a PDC of an other domain in another network.

A debug 10 output:

[2007/07/10 15:06:05, 10] lib/util_sock.c:read_udp_socket(294)
  read_udp_socket: lastip 127.0.0.1 lastport 32806 read: 50
[2007/07/10 15:06:05, 10] libsmb/nmblib.c:parse_nmb(506)
  parse_nmb: packet id = 23836
[2007/07/10 15:06:05, 5] libsmb/nmblib.c:read_packet(755)
  Received a packet of len 50 from (127.0.0.1) port 32806
[2007/07/10 15:06:05, 4] libsmb/nmblib.c:debug_nmb_packet(112)
  nmb packet from 127.0.0.1(32806) header: id=23836 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=SAMIDA-S01<00> q_type=32 q_class=1
[2007/07/10 15:06:05, 3]
nmbd/nmbd_winsserver.c:wins_process_name_query_request(1892)
  wins_process_name_query: name query for name SAMIDA-S01<00> from IP
127.0.0.1
[2007/07/10 15:06:05, 3]
nmbd/nmbd_winsserver.c:wins_process_name_query_request(1916)
  wins_process_name_query: name query for name SAMIDA-S01<00> - name
expired. Returning fail.
[2007/07/10 15:06:05, 4] nmbd/nmbd_packets.c:reply_netbios_packet(940)
  reply_netbios_packet: sending a reply of packet type: wins_query
SAMIDA-S01<00> to ip 127.0.0.1 for id 23836
[2007/07/10 15:06:05, 4] libsmb/nmblib.c:debug_nmb_packet(112)
  nmb packet from 127.0.0.1(32806) header: id=23836 opcode=Query(0)
response=Yes
      header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes
      header: rcode=3 qdcount=0 ancount=1 nscount=0 arcount=0
      answers: nmb_name=SAMIDA-S01<00> rr_type=10 rr_class=1 ttl=0
[2007/07/10 15:06:05, 5] libsmb/nmblib.c:send_udp(777)
  Sending a packet of len 56 to (127.0.0.1) on port 32806
[2007/07/10 15:06:05, 4]
nmbd/nmbd_workgroupdb.c:find_workgroup_on_subnet(171)
  find_workgroup_on_subnet: workgroup search for HS on subnet 172.17.20.1:
found.
[2007/07/10 15:06:05, 10]
nmbd/nmbd_sendannounce.c:announce_myself_to_domain_master_browser(382)
  announce_myself_to_domain_master_browser: t (1184072764) -
last(1184071881) < 900
[2007/07/10 15:06:05, 4] nmbd/nmbd_workgroupdb.c:dump_workgroups(282)
  dump_workgroups()
   dump workgroup on subnet     172.17.20.1: netmask=  255.255.224.0:
        ENX(2) current master browser = COMPILE-SERVER-
        HEUFT(3) current master browser = OFFICE_GATEWAY
        HSAW(4) current master browser = HSAW-S01
        HS(1) current master browser = HS-DC2
                HS-DC2 40849b1b (HS-DC2)
                TDN-N07 40011003 (TDN-N07)
                TFE_WX1 40011403 ()
[2007/07/10 15:06:05, 4] nmbd/nmbd_workgroupdb.c:dump_workgroups(282)
  dump_workgroups()
   dump workgroup on subnet  UNICAST_SUBNET: netmask=    172.17.20.1:
        SAMIDA(6) current master browser = SAMIDA-S01
        HSBB(5) current master browser = HSBB-S01
        HSAW(4) current master browser = HSAW-S01
        HEUFT(3) current master browser = OFFICE_GATEWAY
        ENX(2) current master browser = COMPILE-SERVER-
        HS(1) current master browser = UNKNOWN
                HS-DC2 40819b1b (HS-DC2)
                HS-DC1   8d9b0b (HS-DC1)
                TDN-N07    11003 (Eser, Peter (Verleih))
                TFE_WX1    11403 ()
[2007/07/10 15:06:05, 4] nmbd/nmbd_winsserver.c:wins_write_database(2353)
  wins_write_database: Dump of WINS name list.
  HS-DC1<00>          TTL = PERMANENT                    172.19.72.10 66
  HSBB-S01<00>        TTL = PERMANENT                      172.19.0.4 66
  SAMIDA-S01<00>      TTL = PERMANENT                      172.18.0.1 66
  HS-DC2<00>          TTL = PERMANENT                     172.17.20.1 66
  TFE_WX1<00>         TTL = Fri Jul 13 22:42:49 2007      172.17.6.96 64
  HS<00>              TTL = PERMANENT                 255.255.255.255 e4
  TDN-N07<20>         TTL = Sat Jul 14 02:22:05 2007     172.17.17.65 64
  *<20>               TTL = PERMANENT                     172.17.20.1 64
  HSAW-TX<00>         TTL = Tue Jul 10 16:19:05 2007       172.17.0.4  4
  SAMIDA-S02$<03>     TTL = Wed Jul 11 02:39:37 2007       172.18.0.2 64
  HSAW-S01<00>        TTL = PERMANENT                     172.17.16.5 66
  HS<1c>              TTL = PERMANENT                     172.17.20.1
172.19.72.10 e4
  SAMIDA-S02<20>      TTL = PERMANENT                      172.18.0.2 66
  HSBB<1b>            TTL = PERMANENT                      172.19.0.4 64
  HSBB-S02<00>        TTL = PERMANENT                      172.19.0.3 66
  TFE-COMPILE<03>     TTL = Fri Jul 13 14:59:37 2007      172.17.20.2 64
  HSAW<1b>            TTL = PERMANENT                     172.17.16.5 64
  HSAW-S02<00>        TTL = PERMANENT                     172.17.16.1 66
  HSBB<00>            TTL = PERMANENT                 255.255.255.255 e4
  SAMIDA_S02<00>      TTL = Tue Jul 10 15:51:48 2007          0.0.0.0  4
  HSBB<1c>            TTL = PERMANENT                      172.19.0.4 e4
  HSAW-TFE<03>        TTL = PERMANENT                      172.17.0.2 66
  INTRANET-BB<00>     TTL = Tue Jul 10 15:20:59 2007          0.0.0.0  4
  HS<1e>              TTL = PERMANENT                 255.255.255.255 e4
  __SAMBA__<20>       TTL = PERMANENT                     172.17.20.1 64
  HSAW<1c>            TTL = PERMANENT                     172.17.16.5 e4
  HSBB-S01<03>        TTL = PERMANENT                      172.19.0.4 66
  TFE-COMPILE<20>     TTL = Fri Jul 13 14:59:37 2007      172.17.20.2 64
  HS-DC2<03>          TTL = PERMANENT                     172.17.20.1 66
  HSAW<00>            TTL = PERMANENT                 255.255.255.255 e4
  HS-DC1<03>          TTL = PERMANENT                    172.19.72.10 66
  TFE_W13<00>         TTL = Tue Jul 10 16:41:42 2007      172.17.4.24  4
  SAMIDA<1b>          TTL = PERMANENT                      172.18.0.1 64
  HSAW-S01<03>        TTL = PERMANENT                     172.17.16.5 66
  SAMIDA-S02<00>      TTL = PERMANENT                      172.18.0.2 66
  HSBB-S01<20>        TTL = PERMANENT                      172.19.0.4 66
  SAMIDA-S01<03>      TTL = PERMANENT                      172.18.0.1 66
  HSAW-TFE<20>        TTL = PERMANENT                      172.17.0.2 66
  HSBB-S02<03>        TTL = PERMANENT                      172.19.0.3 66
  TDN-N07<00>         TTL = Sat Jul 14 02:22:05 2007     172.17.17.65 64
  *<00>               TTL = PERMANENT                     172.17.20.1 64
  SAMIDA<00>          TTL = PERMANENT                 255.255.255.255 e4
  HS-DC1<20>          TTL = PERMANENT                    172.19.72.10 66
  INTRANET_BB<00>     TTL = Tue Jul 10 15:20:59 2007          0.0.0.0  4
  HSAW-S01<20>        TTL = PERMANENT                     172.17.16.5 66
  HSAW-S02<03>        TTL = PERMANENT                     172.17.16.1 66
  HSBB<1e>            TTL = PERMANENT                 255.255.255.255 e4
  SAMIDA<1c>          TTL = PERMANENT                      172.18.0.1 e4
  SAMIDA-S01<20>      TTL = PERMANENT                      172.18.0.1 66
  HS-DC2<20>          TTL = PERMANENT                     172.17.20.1 66
  TFE_WX1<20>         TTL = Fri Jul 13 22:43:06 2007      172.17.6.96 64
  __SAMBA__<00>       TTL = PERMANENT                     172.17.20.1 64
  HSAW<1e>            TTL = PERMANENT                 255.255.255.255 e4
  HSBB-S02<20>        TTL = PERMANENT                      172.19.0.3 66
  TFE-COMPILE<00>     TTL = Fri Jul 13 14:59:37 2007      172.17.20.2 64
  HSAW-S02<20>        TTL = PERMANENT                     172.17.16.1 66
  SAMIDA<1e>          TTL = PERMANENT                 255.255.255.255 e4
  SAMIDA-S02<03>      TTL = PERMANENT                      172.18.0.2 66
  HSAW-TFE<00>        TTL = PERMANENT                      172.17.0.2 66
  HS<1b>              TTL = PERMANENT                    172.19.72.10 64

Samba is 3.0.25b.
Why is SAMIDA-S01 not longer resolved? Any hints welcome...




More information about the samba mailing list