[Samba] WINS initiated dns queries fail after some time

Martin Vogt martinvogt at web.de
Tue Feb 13 11:07:40 GMT 2007


Hello samba-list,

we have a problems with WINS resolved hosts, which were added to the 
WINS cache on the first query with TTL=7200 (2 hours). Exactly after 2h 
entries are deleted and all following queries fail. This behaviour 
occurs only for hosts in other subnets than our PDC, e.g. some other 
linux machines. Joined workstations, even in other subnets, are fully 
resolvable. We have configured our PDC as the only WINS server and set 
"dns proxy = yes" because we have a permanent connection to our dns 
server and it works well, but only for the first query and all following 
in 2h, after 2h all queries fail. It seems that the dns query dies after 
some time, but the dns server is still online and responses to queries. 
Wenn we restart nmbd it works well for another 2h. Can anybody explain 
why after some time dns queries froms wins fails?


Samba 3.0.24 on Gentoo (stable)


/etc/samba/smb.conf

[global]
    wins support = yes
    name resolve order = lmhosts wins
    dns proxy = yes
    max ttl = 518400    # 6 days
    max wins ttl = 1036800      # 12 days
    min wins ttl = 172800       # 2 days




$ less /var/log/samba/
...
[2007/02/13 00:58:07, 3] 
nmbd/nmbd_winsserver.c:wins_process_name_query_request(1892)
  wins_process_name_query: name query for name FILESERVER<00> from IP 
192.168.1.10
[2007/02/13 00:58:07, 3] 
nmbd/nmbd_winsserver.c:wins_process_name_query_request(1956)
  wins_process_name_query: name query for name FILESERVER<00> not found 
- doing dns lookup.
[2007/02/13 00:58:07, 3] nmbd/asyncdns.c:queue_dns_query(310)
  added DNS query for FILESERVER<00>
[2007/02/13 00:58:07, 3] nmbd/asyncdns.c:add_dns_result(43)
  add_dns_result: DNS gave answer for FILESERVER of 192.168.40.100
[2007/02/13 00:58:07, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name FILESERVER<00> with first IP 
192.168.40.100 ttl=7200 nb_flags= 4 to subnet WINS_SERVER_SUBNET
[2007/02/13 00:58:07, 3] nmbd/asyncdns.c:run_dns_queue(227)
  DNS calling send_wins_name_query_response

...

[2007/02/13 02:58:11, 3] 
nmbd/nmbd_winsserver.c:wins_processing_traverse_fn(2136)
  wins_processing_traverse_fn: deleting timed out DNS name FILESERVER<00>

...

  wins_process_name_query: name query for name FILESERVER<00> from IP 
192.168.1.10
[2007/02/13 02:58:25, 3] 
nmbd/nmbd_winsserver.c:wins_process_name_query_request(1956)
  wins_process_name_query: name query for name FILESERVER<00> not found 
- doing dns lookup.
[2007/02/13 02:58:25, 3] nmbd/asyncdns.c:queue_dns_query(310)
  added DNS query for FILESERVER<00>

...

[2007/02/13 02:58:29, 3] 
nmbd/nmbd_winsserver.c:wins_process_name_query_request(1892)
  wins_process_name_query: name query for name FILESERVER<00> from IP 
192.168.1.10
[2007/02/13 02:58:29, 3] 
nmbd/nmbd_winsserver.c:wins_process_name_query_request(1956)
  wins_process_name_query: name query for name FILESERVER<00> not found 
- doing dns lookup.
[2007/02/13 02:58:29, 3] nmbd/asyncdns.c:queue_dns_query(310)
  added DNS query for FILESERVER<00>



More information about the samba mailing list